Creating a new cordova project. Error: Uncaught, unspecified “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 “…\Program Files\nodejs\node_modules\c ordova\node_modules_cordova-app-hello-world@3.12.0@cordova-app-hello-world\inde x.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\zhanghan\AppData\Roaming\npm-cache_logs\2017-06-12T06_53_ 27_153Z-debug.log)
cordova 7.0.1 nodejs 6.10.3 npm 5.0.3
=================================log====================================================== 0 info it worked if it ends with ok 1 verbose cli [ ‘C:\Program Files\nodejs\node.exe’, 1 verbose cli ‘C:\Users\zhanghan\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js’, 1 verbose cli ‘install’, 1 verbose cli ‘C:\Program Files\nodejs\node_modules\cordova\node_modules\_cordova-app-hello-world@3.12.0@cordova-app-hello-world\index.js’ ] 2 info using npm@5.0.3 3 info using node@v6.10.3 4 verbose npm-session f5a619b2c872d69a 5 silly install loadCurrentTree 6 silly install readLocalPackageData 7 silly fetchPackageMetaData error for file:C:/Program Files/nodejs/node_modules/cordova/node_modules/_cordova-app-hello-world@3.12.0@cordova-app-hello-world/index.js Could not install from “…\Program Files\nodejs\node_modules\cordova\node_modules_cordova-app-hello-world@3.12.0@cordova-app-hello-world\index.js” as it does not contain a package.json file. 8 verbose stack Error: ENOENT: no such file or directory, open 'C:\Program Files\nodejs\node_modules\cordova\node_modules_cordova-app-hello-world@3.12.0@cordova-app-hello-world\index.js\package.json’ 8 verbose stack at Error (native) 9 verbose cwd C:\Users\zhanghan.cordova\node_modules 10 verbose Windows_NT 6.1.7601 11 verbose argv “C:\Program Files\nodejs\node.exe” “C:\Users\zhanghan\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js” “install” "C:\Program Files\nodejs\node_modules\cordova\node_modules\_cordova-app-hello-world@3.12.0@cordova-app-hello-world\index.js" 12 verbose node v6.10.3 13 verbose npm v5.0.3 14 error code ENOLOCAL 15 error Could not install from “…\Program Files\nodejs\node_modules\cordova\node_modules_cordova-app-hello-world@3.12.0@cordova-app-hello-world\index.js” as it does not contain a package.json file. 16 verbose exit [ 1, true ]