求助mac安装karma时,贴代码如下,后面还有希望这些代码能说明问题,

oukokudongdeMBP:~wangguodong$sudonpminstall-gkarma
Password:
npmWARNenginekarma@0.12.31:wanted:{"node":"~0.8||~0.10"}(current:{"node":"0.12.2","npm":"2.7.4"})
fsevents@0.3.6install/usr/local/lib/node_modules/karma/node_modules/chokidar/node_modules/fsevents
node-gyprebuild
gypWARNinstallgotanerror,rollingbackinstall
gypERR!configureerror
gypERR!stackError:EPERM,utime'/Users/wangguodong/.node-gyp/0.12.2'
gypERR!stackatError(native)
gypERR!SystemDarwin14.1.0
gypERR!command"node""/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js""rebuild"
gypERR!cwd/usr/local/lib/node_modules/karma/node_modules/chokidar/node_modules/fsevents
gypERR!node-vv0.12.2
gypERR!node-gyp-vv1.0.3
gypERR!notok
npmWARNoptionaldepfailed,continuingfsevents@0.3.6
Cats萌萌
浏览 524回答 2
2回答

慕哥9229398

这句话的意思是你的node版本与karma不匹配。karma希望你的配置是:wanted:{"node":"~0.8||~0.10"}而你当前的是:(current:{"node":"0.12.2","npm":"2.7.4"})解决办法:装个切换node版本的模块,比如n

MYYA

用node升级下就好了。sudonpmcacheclean-fsudonpminstall-gnsudonstablenode-v
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript