npm安装错误代码EBUSY errono -4082 [英] npm install error code EBUSY errono -4082

查看:2946
本文介绍了npm安装错误代码EBUSY errono -4082的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行Windows7,并且刚刚安装了以下内容...

I am running windows7 and have just installed the following...

c:\design_centre_dev\workspace>node -v
v5.10.1

c:\design_centre_dev\workspace>npm -v
3.8.6

我在我的节点项目上运行npm install时遇到问题,我的一位开发人员说他没有问题,应该为我工作.

I'm having issues running npm install on my node project which one of my fellow dev's says he has no trouble with and should work for me.

当我运行npm install时,出现类似...的错误

When I run npm install i am getting errors like...

npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Users\\rriviere\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v5.10.1
npm ERR! npm  v3.8.6
npm ERR! path c:\design_centre_dev\workspace\node_modules\path-type
npm ERR! code EBUSY
npm ERR! errno -4082
npm ERR! syscall rename

npm ERR! EBUSY: resource busy or locked, rename 'c:\design_centre_dev\workspace\node_modules\path-type' -> 'c:\design_centre_dev\workspace\node_module
s\.path-type.DELETE'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

似乎对模块asynch,path_type和isarray抛出了相同类型的错误,并且不想越过它们.

It seems to throw these same types of errors for modules asynch,path_type and isarray and does not want to get past them.

任何人都可以建议出什么问题吗?

Can anyone suggest what might be wrong?

感谢您建议在其他地方回答这个话题.我看了一下,我相信这是一个不同的问题.我想这是因为我今天一直在进一步研究,我想问题是npm正在创建的node_modules目录.该目录上的权限似乎不正确.我认为这可能是一个问题,并且可能是一个新线程,所以我将关闭它并创建一个新线程.

Thanks for the suggestion of this thread possibly being answered somewhere else. I had a look and I believe it is a different problem. I think this because I've been investigating further today and I think the problem is that the node_modules directory which npm is creating. The permissions on that directory don't seem to be right. I think this might be an issue and probably a new thread so I'll close this one and create a new.

推荐答案

如果您已在编辑器中打开该节点模块文件,则只需从编辑器中关闭文件

If you have open that node module file in your editor then just close the file from the editor

关闭编辑器软件

然后重试

这篇关于npm安装错误代码EBUSY errono -4082的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆