npm error : 404 Not Found: cordova-plugin-whitelist
npm error : 404 Not Found: cordova-plugin-whitelist
我已经在 Visual Studio 项目中安装了 cordova-plugin-whitelist 和 GitHub 的 cordova,但是当我重新编译时,我得到这个错误:
Calling plugman.fetch on plugin "cordova-plugin-whitelist@1.0.1-dev"
Fetching plugin "cordova-plugin-whitelist@1.0.1-dev" via plugin registry
MDAVSCLI : npm error : 404 Not Found: cordova-plugin-whitelist
插件的所有文件都正确地位于我项目的插件文件夹下...
可能的答案:
在 visual studio 选项 - 工具 - apache cordova 工具中使用 'clear cordova cache'。然后重新编译。在重新编译期间,请确保您可以访问互联网。
github 中的某些版本的 cordova Api 根本无法在 visual studio cordova 中使用,请尝试更新或更旧的版本。一旦一个版本可用,如无必要,请勿更改为另一个版本。
如果您使用 Visual Studio 2013 Community Update 4 和 Cordova Ctp3.1 或任何旧版本,请尝试安装 Visual Studio 2015 Community RC 和 select cordova 在安装过程中,一些 api 问题在 vs 2015 中消失了。顺便说一句,vs 2013 和 2015 可以共存,但是,不要在 vs 2015 中打开旧的 cordova 项目,创建一个新项目并将所有内容放入旧项目index.html in new index.html,因为这2个html不在同一个根目录下,当然需要在新项目中再添加Api
对于这个问题的未来访问者,我有 , and as it seems, from an official blog post,Cordova 正在将他们的插件移动到 npm。
我现在使用 npm 轻松安装了 cordova-plugin-whitelist:
npm install cordova-plugin-whitelist
我刚刚在这里回答了这个问题
简短版本是使用 git repo
cordova plugin add https://github.com/apache/cordova-plugin-whitelist
我已经在 Visual Studio 项目中安装了 cordova-plugin-whitelist 和 GitHub 的 cordova,但是当我重新编译时,我得到这个错误:
Calling plugman.fetch on plugin "cordova-plugin-whitelist@1.0.1-dev"
Fetching plugin "cordova-plugin-whitelist@1.0.1-dev" via plugin registry
MDAVSCLI : npm error : 404 Not Found: cordova-plugin-whitelist
插件的所有文件都正确地位于我项目的插件文件夹下...
可能的答案:
在 visual studio 选项 - 工具 - apache cordova 工具中使用 'clear cordova cache'。然后重新编译。在重新编译期间,请确保您可以访问互联网。
github 中的某些版本的 cordova Api 根本无法在 visual studio cordova 中使用,请尝试更新或更旧的版本。一旦一个版本可用,如无必要,请勿更改为另一个版本。
如果您使用 Visual Studio 2013 Community Update 4 和 Cordova Ctp3.1 或任何旧版本,请尝试安装 Visual Studio 2015 Community RC 和 select cordova 在安装过程中,一些 api 问题在 vs 2015 中消失了。顺便说一句,vs 2013 和 2015 可以共存,但是,不要在 vs 2015 中打开旧的 cordova 项目,创建一个新项目并将所有内容放入旧项目index.html in new index.html,因为这2个html不在同一个根目录下,当然需要在新项目中再添加Api
对于这个问题的未来访问者,我有
我现在使用 npm 轻松安装了 cordova-plugin-whitelist:
npm install cordova-plugin-whitelist
我刚刚在这里回答了这个问题
简短版本是使用 git repo
cordova plugin add https://github.com/apache/cordova-plugin-whitelist