Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ionic-framework/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
找不到cordova插件白名单错误404_Cordova_Ionic Framework_Ionic - Fatal编程技术网

找不到cordova插件白名单错误404

找不到cordova插件白名单错误404,cordova,ionic-framework,ionic,Cordova,Ionic Framework,Ionic,我尝试运行以下代码: cordova插件添加cordova插件白名单但我一直得到的是: 通过插件注册表获取插件“cordova插件白名单” 错误:404未找到:cordova插件白名单 在RegClient。(/usr/local/lib/node_modules/cordova/node_modules/cordova lib/node_modules/npm/node_modules/npm registry client/lib/request.js:304:14) 应请求。\回调(/us

我尝试运行以下代码:
cordova插件添加cordova插件白名单
但我一直得到的是:

通过插件注册表获取插件“cordova插件白名单”
错误:404未找到:cordova插件白名单
在RegClient。(/usr/local/lib/node_modules/cordova/node_modules/cordova lib/node_modules/npm/node_modules/npm registry client/lib/request.js:304:14)
应请求。\回调(/usr/local/lib/node_modules/cordova/node_modules/cordova lib/node_modules/npm/node_modules/npm registry client/lib/Request.js:246:65)
at Request.self.callback(/usr/local/lib/node_modules/cordova/node_modules/cordova lib/node_modules/npm/node_modules/Request/Request.js:236:22)
at Request.emit(events.js:98:17)
应要求。(/usr/local/lib/node_modules/cordova/node_modules/cordova lib/node_modules/npm/node_modules/request/request.js:1142:14)
at Request.emit(events.js:117:20)
在收到消息时。(/usr/local/lib/node_modules/cordova/node_modules/cordova lib/node_modules/npm/node_modules/request/request.js:1096:12)
在IncomingMessage.emit(events.js:117:20)
在_stream_readable.js:943:16
在进程中。_tickCallback(node.js:419:13)

有什么想法吗?

科尔多瓦正在将插件转移到npm

我使用npm轻松安装了:

npm install cordova-plugin-whitelist

我想补充一个补充答案:

在Visual Studio(至少VS2015)中,您可以在designer模式下打开config.xml(或Shift+F7打开),然后转到Plugins->Custom,然后提供git repo URL以安装插件,从而使其可用于您正在处理的项目


我今天遇到了同样的问题,基本上我需要这个插件,但它没有在服务器上维护

谢天谢地,cordova可以解决git回购,我只是用它来代替

cordova plugin add https://github.com/apache/cordova-plugin-whitelist

我认为应该是
cordova plugin add cordova plugin whitelist
@A1rPun不,不应该是那样。这正是该职位的原因
cordova plugin add
转到cordova.io,它是插件的404。因此,为什么它必须与NPM一起安装。@SMT在“官方博客文章”中说,您需要将cordova更新为5.0.0才能使用新ID<代码>npm安装对我来说不起作用,但更新cordova起了作用。