cordova创建项目失败问题

cmd执行

cordova create hello com.demo.hello hello

报错信息

Creating a new cordova project.
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\[email protected]@cordova-app-hello-world\index.js" as it does not contain a package.json file.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\陈海飞\AppData\Roaming\npm-cache\_logs\2018-10-12T14_49_29_635Z-debug.log)

解决:安装版本

cnpm install -g [email protected]

猜你喜欢

转载自blog.csdn.net/qq_33040483/article/details/83033911