Windows 10 64bit install issue


#1

I use Windows 10 64bit.

Here the NativeScript_CLI_Setup log file:
[0B9C:1904][2017-08-11T15:47:10]i000: Executing operation: InstallNativeScript.
[0B9C:1904][2017-08-11T15:52:14]e000: Executing operation InstallNativeScript failed.
Error: npm ERR! Windows_NT 10.0.15063
npm ERR! argv “C:\Program Files (x86)\nodejs\node.exe” “C:\Program Files (x86)\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 fsevents@1.1.2: 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
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\Enzo\Downloads\npm-debug.log
npm ERR! code 1
[0B9C:1904][2017-08-11T15:52:14]i399: Apply complete, result: 0x0, restart: None, ba requested restart: No

I also tried advanced setup, same error:

C:\WINDOWS\system32>npm i -g nativescript
npm WARN deprecated node-uuid@1.4.7: Use uuid module instead
C:\Users\Enzo\AppData\Roaming\npm
`-- (empty)

npm ERR! Windows_NT 10.0.15063
npm ERR! argv “C:\Program Files (x86)\nodejs\node.exe” “C:\Program Files (x86)\nodejs\node_modules\npm\bin\npm-cli.js” “i” “-g” "nativescript"
npm ERR! node v6.9.1
npm ERR! npm v3.10.8
npm ERR! code EBADPLATFORM

npm ERR! notsup Unsupported platform for fsevents@1.1.2: 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

npm ERR! Please include the following file with any support request:
npm ERR! C:\WINDOWS\system32\npm-debug.log
npm ERR! code 1


#2

https://github.com/NativeScript/nativescript-cli/issues/2980 seems to indicate that it is a know issue. Looks like the suggestion is to update NPM and see if that fixes it.


#3

I’ve updated and it worked but now it says I can only compile for Android and not for iOS and I must have a MacOs for iOS builds (sorry I can’t paste the right message)


#4

That is correct, but it also should not be regarded as an error, and is only there to inform you of the OS’s restrictions.

Have a look at NativeScript Sidekick if you wish to build iOS apps without a Mac machine. Bear in mind that the service is free during the preview period, and will likely become paid once the public version is out.