我正在尝试设置一个离子项目。在npm之后我运行了此命令。任何解决此错误的建议,不胜感激。从git仓库克隆Ionic项目后,执行以下步骤。尝试添加ios平台时出现以下错误。
rm -rf package-lock.json
/usr/local/bin/npm i
npm install ionic@latest
npm install @ionic/cli-plugin-cordova
ionic cordova build ios --no-interactive
错误:
Check your connection and platform name/version/URL.
Error: npm: Command failed with exit code 1 Error output:
npm ERR! Darwin 17.4.0
npm ERR! argv "/usr/local/bin/node"
"/Users/Shared/Jenkins/Music/IONIC/node_modules/.bin/npm" "install"
"cordova-ios@^4.5.4" "--production" "--save-exact"
npm ERR! node v8.9.3
npm ERR! npm v2.15.12
npm ERR! code EPEERINVALID
npm ERR! peerinvalid The package rxjs@5.5.11 does not satisfy its siblings'
peerDependencies requirements!
npm ERR! Please include the following file with any support request:
npm ERR! /Users/Shared/Jenkins/Music/IONIC/npm-debug.log
[ERROR] Exception: