Ios it.mobimentum.phonegapspinnerplugin插件不工作
不推荐将此版本的Cordova与旧版本的Cordova ios一起使用。升级至cordova-ios@4.0.0或者更新 错误:您的ios平台没有Api.js 根据LuminousEagle的,我尝试通过以下方式添加和删除平台:Ios it.mobimentum.phonegapspinnerplugin插件不工作,ios,cordova,ionic-framework,Ios,Cordova,Ionic Framework,不推荐将此版本的Cordova与旧版本的Cordova ios一起使用。升级至cordova-ios@4.0.0或者更新 错误:您的ios平台没有Api.js 根据LuminousEagle的,我尝试通过以下方式添加和删除平台: cordova platform rm ios cordova platform add ios cordova plugin add https://github.com/mobimentum/phonegap-plugin-loading-spinner.git
cordova platform rm ios
cordova platform add ios
cordova plugin add https://github.com/mobimentum/phonegap-plugin-loading-spinner.git
然后我再次运行命令
ionic cordova build ios
还有错误吗
sh-3.2# ionic cordova build ios
> ionic cordova prepare
✖ cordova prepare - failed!
[ERROR] An error occurred while running cordova prepare (exit code 1):
Discovered plugin "it.mobimentum.phonegapspinnerplugin" in config.xml. Adding it to the project
Failed to restore plugin "it.mobimentum.phonegapspinnerplugin" from config.xml. You might need to try adding it
again. Error: Error: Registry returned 404 for GET on
https://registry.npmjs.org/it.mobimentum.phonegapspinnerplugin
因此,名为“it.mobimentum.phonegapspinnerplugin”的插件没有安装
找了一点后我发现
在使用部分,我尝试通过以下方式安装插件
cordova platform rm ios
cordova platform add ios
cordova plugin add https://github.com/mobimentum/phonegap-plugin-loading-spinner.git
它仍然显示一个错误
sh-3.2# cordova plugin add https://github.com/mobimentum/phonegap-plugin-loading-spinner.git
Error: Failed to fetch plugin https://github.com/mobimentum/phonegap-plugin-loading-spinner.git via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Error: npm: Command failed with exit code 235 Error output:
npm ERR! addLocal Could not install /tmp/npm-2500-e6f21046/git-cache-49279488/feeaeb845cd544e5875d75ff21d0504e50d315a4
npm ERR! Darwin 16.7.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "https://github.com/mobimentum/phonegap-plugin-loading-spinner.git" "--save"
npm ERR! node v6.11.1
npm ERR! npm v3.10.10
npm ERR! code EISDIR
npm ERR! errno -21
npm ERR! syscall read
npm ERR! eisdir EISDIR: illegal operation on a directory, read
npm ERR! eisdir This is most likely not a problem with npm itself
npm ERR! eisdir and is related to npm not being able to find a package.json in
npm ERR! eisdir a package you are trying to install.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/plutus/Desktop/Croisiere-ios-3/node_modules/npm-debug.log
我找不到任何合适的方法来摆脱这个问题
如果您有任何帮助,我们将不胜感激。您似乎已经升级了Cordova。您可以手动添加插件,而不是从中获取url@SamirBhatt如何手动添加插件?我试过$cordova plugin add it.mobimentum.phonegapspinnerplugin(参考:-)但是它的错误你可以手动下载插件和插件包的所有文件并手动设置配置文件。看起来你已经升级了cordova。您可以手动添加插件,而不是从中获取url@SamirBhatt如何手动添加插件?我曾尝试$cordova plugin add it.mobimentum.phonegapspinnerplugin(参考:-),但它的错误您可以手动下载插件和插件包的所有文件,并手动设置配置文件。