无法安装npm(ENAMETOOLONG)

时间:2017-12-03 13:58:53

标签: node.js npm nvm

尝试运行npm命令,我收到以下消息,例如包含大量字符串的路径(" fs:重新评估本机...")。

我已经卸载并重新安装了node和npm。也卸载了nvm。 我无法用npm命令运行任何东西。

Error: ENAMETOOLONG: name too long, mkdir '/Users/myusername/MyRepo/(node:10542) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version. (node:10542) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version. (node:10542) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version. /usr/local'

在.profile中,我的PATH看起来像这样: export PATH =" $ PATH:/ usr / local / bin"

任何帮助表示赞赏!

0 个答案:

没有答案
相关问题