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

成功

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-16
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-28
  • 2022-12-23
  • 2021-07-26
  • 2022-01-10
  • 2022-12-23
  • 2021-11-01
  • 2021-12-24
相关资源
相似解决方案