大家好,请教一个棘手的问题!
我的是MACBook, JDK版本是1.6, cordova是最新的7.01还有 npm是4.2
然后我在用cordova创建项目名字叫coolgame:cordova create coolgame com.cordova.coolgame CoolGame
就
Error: Uncaught, unspecified "error" event. ( Error from Cordova Fetch: Error: npm: Command failed with exit code 254 Error output: npm ERR! not a package /usr/local/lib/node_modules/.cordova_npminstall/node_modules/.3.12.0@cordova-app-hello-world/index.js npm ERR! addLocal Could not install /usr/local/lib/node_modules/.cordova_npminstall/node_modules/.3.12.0@cordova-app-hello-world/index.js npm ERR! Darwin 16.5.0 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "/usr/local/lib/node_modules/.cordova_npminstall/node_modules/.3.12.0@cordova-app-hello-world/index.js" npm ERR! node v7.10.0 npm ERR! npm v4.2.0 npm ERR! path /tmp/npm-23173-e16c26c0/unpack-4e9e3f53/package.json npm ERR! code ENOENT npm ERR! errno -2 npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open '/tmp/npm-23173-e16c26c0/unpack-4e9e3f53/package.json' npm ERR! enoent ENOENT: no such file or directory, open '/tmp/npm-23173-e16c26c0/unpack-4e9e3f53/package.json' npm ERR! enoent This is most likely not a problem with npm itself npm ERR! enoent and is related to npm not being able to find a file. npm ERR! enoent
npm ERR! Please include the following file with any support request: npm ERR! /Users/liuzhaoting/.npm/_logs/2017-05-25T08_03_37_392Z-debug.log) 然后就没有然后了,工程创建不出来,报了一大堆红色的错误,请问这是什么原因呢!急求答案
|