[英]Cordova cannot install
我發布了一個問題(人們無緣無故關閉-https: //stackoverflow.com/questions/26149969/update-cordova-platform-3-5-1-not-working )
他們指的是因為我收到此錯誤而無法解決的解決方案:
npm http GET https://registry.npmjs.org/cordova
npm ERR! Error: failed to fetch from registry: cordova
npm ERR! at /usr/share/npm/lib/utils/npm-registry-client/get.js:139:12
npm ERR! at cb (/usr/share/npm/lib/utils/npm-registry-client/request.js:31:9)
npm ERR! at Request._callback (/usr/share/npm/lib/utils/npm-registry-client/request.js:136:18)
npm ERR! at Request.callback (/usr/lib/nodejs/request/main.js:119:22)
npm ERR! at Request.<anonymous> (/usr/lib/nodejs/request/main.js:212:58)
npm ERR! at Request.emit (events.js:88:20)
npm ERR! at ClientRequest.<anonymous> (/usr/lib/nodejs/request/main.js:412:12)
npm ERR! at ClientRequest.emit (events.js:67:17)
npm ERR! at HTTPParser.onIncoming (http.js:1261:11)
npm ERR! at HTTPParser.onHeadersComplete (http.js:102:31)
有誰知道如何解決這個問題?
首先嘗試使用以下命令設置npm注冊表:
npm config set registry http://registry.npmjs.org/
我最終使用了使用這些網站的webview使用本機代碼:
http://developer.android.com/guide/webapps/webview.html
http://www.mkyong.com/android/android-webview-example/
更新科爾多瓦從來沒有擔心。
嘗試更新npm:
$ sudo npm install npm -g
然后更新科爾多瓦
$ sudo npm install -g cordova
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.