'cordova平台添加ios'返回'无法获取平台cordova-ios@^6.1.0'

qcbq4gxm  于 2022-11-15  发布在  iOS
关注(0)|答案(1)|浏览(229)

尝试按照Create Your First Cordova App指令在https://cordova.apache.org/docs/en/latest/guide/cli/,当尝试添加任何平台,我得到一个错误.我在Mac上,使用brew安装节点/npm.节点是版本15.1.0,npm是版本7.0.9.

$ cordova platform add ios
Using cordova-fetch for cordova-ios@^6.1.0
Failed to fetch platform cordova-ios@^6.1.0
Probably this is either a connection problem, or platform spec is incorrect.
Check your connection and platform name/version/URL.
CordovaError: CordovaError: Could not determine package name from output:
added 87 packages, and audited 87 packages in 2s

3 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
omvjsjqw

omvjsjqw1#

尝试

npm i -g cordova

然后再

cordova platform add ios@latest

相关问题