Cordova创建工程报错,急求帮助!
大家好,请教一个棘手的问题!我的是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.jsnpm ERR! addLocal Could not install /usr/local/lib/node_modules/.cordova_npminstall/node_modules/.3.12.0@cordova-app-hello-world/index.jsnpm ERR! Darwin 16.5.0npm 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.0npm ERR! npmv4.2.0npm ERR! path /tmp/npm-23173-e16c26c0/unpack-4e9e3f53/package.jsonnpm ERR! code ENOENTnpm ERR! errno -2npm 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 itselfnpm 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)然后就没有然后了,工程创建不出来,报了一大堆红色的错误,请问这是什么原因呢!急求答案
楼主解决了吗??我也遇到这样的问题~ 兄弟解决了没?方便告知下怎么解决的不 看看自己的npm全局包里是不是安装了node-uuid,我也是同样的问题,用npm 安装全局Cordova是报错发现的,我的全局目录在 C:\Users\...\AppData\Roaming\npm\node_modules 看看有没 node-uuid 安装后再用npm 安装一遍就好了
页:
[1]