PhoneGap中文网

 找回密码
 立即注册
查看: 21288|回复: 3
打印 上一主题 下一主题

Cordova创建工程报错,急求帮助!

[复制链接]

2

主题

5

帖子

22

积分

新手上路

Rank: 1

积分
22
跳转到指定楼层
楼主
发表于 2017-5-25 18:01:44 | 显示全部楼层 回帖奖励 |倒序浏览 |阅读模式
大家好,请教一个棘手的问题!
我的是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)
然后就没有然后了,工程创建不出来,报了一大堆红色的错误,请问这是什么原因呢!急求答案

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

站长推荐 上一条 /1 下一条

ionic4视频教程

Archiver|手机版|小黑屋| PhoneGap中文网 ( 京ICP备13027796号-1 )  

GMT+8, 2024-5-2 15:23 , Processed in 0.033685 second(s), 27 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表