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

问题描述

我正在运行 windows7 并且刚刚安装了以下...

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

c:design_centre_devworkspace>node -v
v5.10.1

c:design_centre_devworkspace>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_devworkspace
ode_modulespath-type
npm ERR! code EBUSY
npm ERR! errno -4082
npm ERR! syscall rename

npm ERR! EBUSY: resource busy or locked, rename 'c:design_centre_devworkspace
ode_modulespath-type' -> 'c:design_centre_devworkspace
ode_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 错误 -4082的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-25 08:35