添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
淡定的牛肉面  ·  Reliably dropping a ...·  3 周前    · 
帅呆的柠檬  ·  Spring security ...·  1 年前    · 
谈吐大方的拐杖  ·  centos7 - CentOS ...·  2 年前    · 

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement . We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account npm 命令出错 Error: EEXIST: file already exists, mkdir 'C:\Program Files\nodejs\npm' at Error (native) 3.10.3 #8688 npm 命令出错 Error: EEXIST: file already exists, mkdir 'C:\Program Files\nodejs\npm' at Error (native) 3.10.3 #8688 347830076 opened this issue Sep 21, 2016 · 10 comments

npm 命令出错 Error: EEXIST: file already exists, mkdir 'C:\Program Files\nodejs\npm'
at Error (native)

在win7下安装node.js和npm,从node.js官网上下载的pkg安装的。

安装后,只有 npm -v的命令可以正常显示版本号,其它npm命令都后报这个错

Error: EEXIST: file already exists, mkdir 'C:\Program Files\nodejs\npm'
at Error (native)
3.10.3

我已经卸载又重装了node.js好几次,还是不行。npm就是出错。

有遇到类似情形的吗?怎么解决的。

fundon, wangzishi, leizongmin, ysaaron, chping2125, hyj1991, achievec, butteryfling, SlightALie, and real-zony reacted with thumbs up emoji fundon, varHarrie, and watilde reacted with laugh emoji All reactions

@347830076 进入 C:\Program Files\nodejs\ 的文件夹。如果你卸载了,这个文件夹不应该还存在。有可能是卸载了时候没删干净,所以在安装时候出问题。

你可以试一下,先卸载,然后把 C:\Program Files\nodejs\ 删了在安装。有效果在这儿回复。

中文写的不好不好意思了...

addaleax, akriver, varHarrie, husterxsp, hyj1991, desenmeng, XadillaX, achievec, Jianru-Lin, chenyanfei-m, and 24 more reacted with thumbs up emoji hyj1991, desenmeng, XadillaX, xiangxiong, zjhou, pbsun, ZYSzys, 347830076, Toxiiic, and aaaaaajie reacted with laugh emoji XadillaX, wen911119, and 347830076 reacted with hooray emoji All reactions

Rough translation of the issue is that when @347830076 installs he gets the above error saying unable to mkdir etc. Uninstall and reinstall didn't help.

Suggested fix is to uninstall node, manually remove that directory, and try reinstalling.

I assume @347830076 no longer has this issue since it's been a while, so closing. If you have any more questions, please file a new issue.

@347830076 如果你还有其它问题,请再开一个新的 issue。谢谢!