无法在cordova项目中安装插件 [英] Unable to install plugins in cordova project
问题描述
我面临一个大问题:无法在我的cordova项目中安装phonegap插件
。实际上它昨天仍然正常工作。
Am facing a big issue : Unable to install the phonegap plugins
in my cordova project.Actually it was working fine still yesterday.
现在每当我在cordova项目中使用CLI添加任何cordova插件。我得到以下错误;
Now whenever I try adding any cordova plugin using CLI in my cordova project. I get the following error;
D:\Projects\test cordova>cordova plugin add org.apache.cordova.network-information
Fetching plugin "org.apache.cordova.network-information" via plugin registry
npm http GET http://registry.cordova.io/org.apache.cordova.network-information
npm http 502 http://registry.cordova.io/org.apache.cordova.network-information
npm ERR! registry error parsing json
实际的问题是什么?我怎么能解决这个?
请帮助我..
What is the actual problem? how can i resolve this? Please help me..
推荐答案
解决方案是等待:
看到这个?:
npm http 502 http://registry.cordova.io/org.apache.cordova.network-information
http://en.wikipedia.org/wiki/List_of_HTTP_status_codes#502
解析文件时出错: / p>
Error parsing file?:
npm ERR! registry error parsing json
这是因为是没有文件或
It is because there is no file or valid formatted json files to parse.
托管文件的服务器暂时停止运行。您可以选择报告问题。
The server hosting the files is temporarily down. You could choose to report the problem.
这篇关于无法在cordova项目中安装插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!