原文链接: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

成功

posted on 2018-02-27 15:55  一念430  阅读(1693)  评论(0编辑  收藏  举报