创建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