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

Created on 31 Jul 2017  Â·  10Comments  Â·  Source: NativeScript/nativescript-cli

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

bug windows installer

Most helpful comment

That did the trick - thx.
Steps below:

Completely uninstalled Node and npm:

  • Uninstall Node.js (select Uninstall, not the Repair option).
  • Go into %programfiles%\nodejs and delete the entire folder.
  • Delete %appdata%\npm and %appdata%\npm-cache.
  • Edit your PATH and remove everything that references npm (to do so,
    hit "Start" and search for "Environment Variables").

Reinstall latest node and npm from:
https://nodejs.org/en/download/

After install:
node v6.11.2
npm 3.10.10

Restarted the nativescript win installer - finished successfully!

Thanks.

On Tue, Aug 1, 2017 at 1:53 PM, dtopuzov notifications@github.com wrote:

Hi @tigrenok00 https://github.com/tigrenok00

This screens says you have [email protected], which is the problematic one.
Please upgrade to [email protected] or newer.

Related to #2980
https://github.com/NativeScript/nativescript-cli/issues/2980

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/NativeScript/nativescript-cli/issues/3019#issuecomment-319493730,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AMEGDASI3VWKFggfi2tiL8bJXbQkjW0jks5sT5BcgaJpZM4On9GY
.

All 10 comments

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!

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 :(

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!

Windows 10
Node.js 6.9.1 (x64)

image

npm-debug.zip

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 https://github.com/NativeScript/nativescript-cli/issues/2980

That did the trick - thx.
Steps below:

Completely uninstalled Node and npm:

  • Uninstall Node.js (select Uninstall, not the Repair option).
  • Go into %programfiles%\nodejs and delete the entire folder.
  • Delete %appdata%\npm and %appdata%\npm-cache.
  • Edit your PATH and remove everything that references npm (to do so,
    hit "Start" and search for "Environment Variables").

Reinstall latest node and npm from:
https://nodejs.org/en/download/

After install:
node v6.11.2
npm 3.10.10

Restarted the nativescript win installer - finished successfully!

Thanks.

On Tue, Aug 1, 2017 at 1:53 PM, dtopuzov notifications@github.com wrote:

Hi @tigrenok00 https://github.com/tigrenok00

This screens says you have [email protected], which is the problematic one.
Please upgrade to [email protected] or newer.

Related to #2980
https://github.com/NativeScript/nativescript-cli/issues/2980

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/NativeScript/nativescript-cli/issues/3019#issuecomment-319493730,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AMEGDASI3VWKFggfi2tiL8bJXbQkjW0jks5sT5BcgaJpZM4On9GY
.

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

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.

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

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

Was this page helpful?
0 / 5 - 0 ratings