Ionic Pro的NPM /安装问题

时间:2017-10-12 01:10:24

标签: javascript firebase ionic-framework

让任何人告诉我这个错误意味着什么 - 我在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

2 个答案:

答案 0 :(得分:2)

This Github issuenpm ERR! notsup Unsupported platform for ___消息有一些解释。您的案例中的模块是ios-deploy。看起来您正在运行Linux操作系统,但该模块需要darwin(Mac)。

答案 1 :(得分:0)

似乎您正在从Linux安装MacOS支持的软件包。我将ios-deploy添加为optionalDependency,并通过警告将其跳过。 我的package.json文件中的以下更改对我有用

"optionalDependencies": { "ios-deploy": "^1.9.4" },