Ionic Pro: NPM Error

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 Likes

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

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

Thanks in advance :slight_smile:

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.

1 Like

Thank you, i’ve removed ios-deploy from package.json and the build worked fine!