+ Start a Discussion
Kim SchaefgesKim Schaefges 

Creating a Hybrid App Using the Mobile SDK CLI

I keep getting the following errors when trying to install the forceios.

C:\>npm install -g cordova forceios
C:\AppData\Roaming\npm\cordova -> C:\AppData\Roaming\npm\node_modules\cordova\bin\cordova
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\
node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "cordova" "forceios"
npm ERR! node v4.4.1
npm ERR! npm  v2.14.20

npm ERR! notsup Unsupported
npm ERR! notsup Not compatible with your operating system or architecture: force
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:

Can anyone help me understand what these errors are and how to resolve them?  
Rita LeverettRita Leverett
It doesn't like your operating system (Windows). It's looking for iOS. Try installing forcedroid instead, at least it worked for me.
Kelly CreechKelly Creech

If You are on a iOS Make sure your using sudo

sudo npm install -g cordova forceios