npm安装包问题ERR argv“/ usr / local / bin / node”

时间:2016-05-23 17:00:31

标签: node.js cordova npm

npm ERR! Darwin 15.2.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v5.2.0
npm ERR! npm  v3.3.12
npm ERR! path /Users/path-to-directory/node_modules/npm/node_modules/rimraf/bin.js
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall chmod

npm ERR! enoent ENOENT: no such file or directory, chmod '/Users/path-to-directory/node_modules/npm/node_modules/rimraf/bin.js'
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/path-to-directory/npm-debug.log

我在codova安装时出现了一些问题,所以我sudo npm install codova -g但是现在,我收到此错误,如果我将"cordova": "^4.2.0",取出package.json文件我就是在尝试运行我的grunt任务时,还会显示>> Error: Cannot find module 'cordova'错误消息。

有关第一条错误消息告诉我的任何帮助吗?

0 个答案:

没有答案