Skip to content

CLI@next fails to install with [email protected] #2980

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
vchimev opened this issue Jul 17, 2017 · 2 comments
Closed

CLI@next fails to install with [email protected] #2980

vchimev opened this issue Jul 17, 2017 · 2 comments
Assignees
Labels

Comments

@vchimev
Copy link

vchimev commented Jul 17, 2017

Caused by: #2979 (82d6abc)

Steps:

npm i nativescript@next

Details:

npm --version
> 3.10.8

Output:

15:37:51 ##### OUTPUT BEGIN #####
15:37:51 
15:37:51 C:\Jenkins\workspace\CLI-stable-tests-smoke-windows
15:37:51 `-- (empty)
15:37:51 
15:37:51 npm WARN enoent ENOENT: no such file or directory, open 'C:\Jenkins\workspace\CLI-stable-tests-smoke-windows\package.json'
15:37:51 npm WARN CLI-stable-tests-smoke-windows No description
15:37:51 npm WARN CLI-stable-tests-smoke-windows No repository field.
15:37:51 npm WARN CLI-stable-tests-smoke-windows No README data
15:37:51 npm WARN CLI-stable-tests-smoke-windows No license field.
15:37:51 npm ERR! Windows_NT 10.0.10586
15:37:51 npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "i" "C:\\Jenkins\\workspace\\CLI-stable-tests-smoke-windows\\sut\\nativescript.tgz"
15:37:51 npm ERR! node v6.9.1
15:37:51 npm ERR! npm  v3.10.8
15:37:51 npm ERR! code EBADPLATFORM
15:37:51 
15:37:51 npm ERR! notsup Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
15:37:51 npm ERR! notsup Valid OS:    darwin
15:37:51 npm ERR! notsup Valid Arch:  any
15:37:51 npm ERR! notsup Actual OS:   win32
15:37:51 npm ERR! notsup Actual Arch: x64
15:37:51 
15:37:51 npm ERR! Please include the following file with any support request:
15:37:51 npm ERR!     C:\Jenkins\workspace\CLI-stable-tests-smoke-windows\npm-debug.log
15:37:51 npm ERR! code 1
15:37:51 
15:37:51 ##### OUTPUT END #####
@rosen-vladimirov
Copy link
Contributor

The problem is with npm itself and some specific versions. The problem is reproducible with npm 3.10.8, but not with 3.10.10. Some npm versions do not handle optional dependencies correctly (it looks like 3.10.8) is one of the problematic.

I'm marking this as known issue. The solution is - update your npm version.

@vchimev vchimev changed the title CLI@next fails to install on Windows CLI@next fails to install with [email protected] Jul 18, 2017
vchimev pushed a commit to NativeScript/nativescript-angular that referenced this issue Jul 18, 2017
[email protected] installs [email protected] by default and CLI@next fails to install on it. Issue: NativeScript/nativescript-cli#2980
vchimev pushed a commit to NativeScript/nativescript-angular that referenced this issue Jul 18, 2017
@dtopuzov
Copy link
Contributor

dtopuzov commented Aug 2, 2017

Closing as known issue.

@dtopuzov dtopuzov closed this as completed Aug 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants