Skip to content

Nativescript installer fails on vanilla windows 10 - 'Unsupported platform for [email protected]' #3019

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
sjworkuid opened this issue Jul 31, 2017 · 10 comments

Comments

@sjworkuid
Copy link

Tried to install Nativescript on a brand new Windows 10 machine using the WIndows Installer.
Install fails with the following error:

[3ABC:3314][2017-07-30T21:33:56]i000: Executing operation: InstallNativeScript.
[3ABC:3314][2017-07-30T21:34:34]e000: Executing operation InstallNativeScript failed.
Error: npm ERR! Windows_NT 10.0.15063
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "-g" "nativescript"
npm ERR! node v6.9.1
npm ERR! npm v3.10.8
npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! notsup Valid OS: darwin
npm ERR! notsup Valid Arch: any
npm ERR! notsup Actual OS: win32
npm ERR! notsup Actual Arch: x64

See attached full setup log. Let me know if I can help with any more information.

Hopefully someone can provide a clue on how to move ahead. Really looking forward to getting started with dev - but stuck at Step 0 for now :)

NativeScript_CLI_Setup_20170730212711.txt

@pkoleva
Copy link
Contributor

pkoleva commented Jul 31, 2017

Hi @sjworkuid,

Would you try upgrading to npm 3.10.10 and retry the installation. If the installator fails again could you try installing nativescript trough npm npm i -g nativescript and then run tns doctor to verify the installation was successful.

Hope one of these works for you!

@tigrenok00
Copy link

This happens to me too. Wanted to upgrade cli from 3.1.1 to 3.1.3.
Tried both suggestions here, but it did not help :(

@pkoleva
Copy link
Contributor

pkoleva commented Aug 1, 2017

Hi @tigrenok00,

Could you send us more details on your setup - npm and node version, OS, and the log when executing npm i - g nativescript .

Thanks!

@tigrenok00
Copy link

Windows 10
Node.js 6.9.1 (x64)

image

npm-debug.zip

@dtopuzov
Copy link
Contributor

dtopuzov commented Aug 1, 2017

Hi @tigrenok00

This screens says you have [email protected], which is the problematic one.
We should check the installer and if it install [email protected] on brand new machines we should fix it.

Workaround:
Please upgrade to [email protected] or newer.

Related to #2980

@sjworkuid
Copy link
Author

sjworkuid commented Aug 2, 2017 via email

@dtopuzov
Copy link
Contributor

dtopuzov commented Aug 2, 2017

We will provide updated version of Windows installer next week that should resolve the issue.

@tigrenok00
Copy link

Thanks for the steps, I will try them in this sequence. What I did before was just updating the npm to 3.10.10 but it still used the previous version for the installation somehow.

@dtopuzov
Copy link
Contributor

dtopuzov commented Aug 17, 2017

@tigrenok00 @sjworkuid We released new version of Windows Installer that should fix the issue (now we install [email protected]).

@mesterum
Copy link

npm i -g npm just helped me upgrade my npm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants