function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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! code EBADPLATFORM

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