Ionic Pro: NPM Error


#1

Hi,

Am getting this error when building within ionic pro.

Running: npm install
npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for ios-deploy@1.9.2: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“linux”,“arch”:“x64”})
npm ERR! notsup Valid OS: darwin
npm ERR! notsup Valid Arch: any
npm ERR! notsup Actual OS: linux
npm ERR! notsup Actual Arch: x64

Anyone encountered this before?


#2

Ionic Pro is a hosted and closed source service, so there is not much we, the community, can help you with, sorry. Check these:

You can - and should - contact support at http://ionicframework.com/support#support


#3

Hey Josh,
Did you find out how to fix this error ?!

Thanks in advance :slight_smile:


#4

Ran into this today and thought I would share the solution. The issue was that ios-deploy (which will only run on a mac) was included in package.json.

Uninstall the ios-deploy npm package and then the build should work.