創建Cordova項目 報錯Error: Unhandled "error" event.(轉)


原文鏈接:http://www.jz07.cn/Home/Article/detail/id/282.html

cordova版本7.0以上版本

創建cordova項目錯誤信息

Error: Unhandled "error" event. (  Error from Cordova Fetch: Error: cmd: Command
 failed with exit code 1 Error output:
npm ERR! code ENOLOCAL
npm ERR! Could not install from "..\..\AppData\Roaming\npm\node_modules\cordova\
node_modules\_cordova-app-hello-world@3.12.0@cordova-app-hello-world\index.js" a
s it does not contain a package.json file.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\my\AppData\Roaming\npm-cache\_logs\2017-08-23T08_00_05_791

 

 

安裝版本  cnpm install -g cordova@6.0.0

成功


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM