EPERM:不允许操作,取消链接 'C:\Users\**\node_modules\.node-sass.DELETE\vendor\win32-x64-57\binding.node' [英] EPERM: operation not permitted, unlink 'C:\Users\**\node_modules\.node-sass.DELETE\vendor\win32-x64-57\binding.node'

查看:135
本文介绍了EPERM:不允许操作,取消链接 'C:\Users\**\node_modules\.node-sass.DELETE\vendor\win32-x64-57\binding.node'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我运行npm install"时,出现错误.

<块引用>

操作系统:Windows 10 npm:6.2.0 节点:v10.9.0

我已经尝试在 "npm cache verify" 之后 "npm install" 但我无法解决它.

npm 缓存验证安装

<块引用>

npm 错误!小路C:\Users\ipiag\products\tor\src\node_modules.node-sass.DELETE\vendor\win32-x64-57\binding.nodenpm 错误!代码 EPERM
npm 错误!错误号 -4048
npm 错误!系统调用取消链接
npm 错误!错误:EPERM:不允许操作,取消链接'C:\Users\ipiag\products\tor\src\node_modules.node-sass.DELETE\vendor\win32-x64-57\binding.node'npm 错误!{ [错误:EPERM:不允许操作,取消链接'C:\Users\ipiag\products\tor\src\node_modules.node-sass.DELETE\vendor\win32-x64-57\binding.node']npm 错误!原因:
npm 错误!{ 错误:EPERM:不允许操作,取消链接'C:\Users\ipiag\products\tor\src\node_modules.node-sass.DELETE\vendor\win32-x64-57\binding.node'npm 错误!错误号:-4048,
npm 错误!代码:'EPERM',
npm 错误!系统调用:'取消链接',
npm 错误!路径:
npm 错误!
'C:\Users\ipiag\products\tor\src\node_modules\.node-sass.DELETE\vendor\win32-x64-57\binding.node'}, npm 错误!
堆栈:
npm 错误!'错误:EPERM:不允许操作,取消链接\'C:\Users\ipiag\products\tor\src\node_modules\.node-sass.DELETE\vendor\win32-x64-57\binding.node\'',npm 错误!错误号:-4048,
npm 错误!代码:'EPERM',
npm 错误!系统调用:'取消链接',
npm 错误!路径:
npm 错误!
'C:\Users\ipiag\products\tor\src\node_modules\.node-sass.DELETE\vendor\win32-x64-57\binding.node',npm 错误!父级:'tor' }
npm 错误!
npm 错误!您的操作系统拒绝了该操作.
npm 错误!该文件可能已在使用中(通过文本编辑器或杀毒软件),
npm 错误!或者您没有访问它的权限.
npm 错误!
npm 错误!如果您认为这可能是权限问题,请仔细检查
npm 错误!文件及其包含目录的权限,或尝试运行
npm 错误!再次以 root/管理员身份执行命令(尽管这不是受到推崇的).

 npm ERR!可以在以下位置找到此运行的完整日志:

npm 错误!
C:\Users\ipiag\AppData\Roaming\npm-cache_logs\2019-06-12T02_32_33_624Z-debug.log

解决方案

就我而言,我杀死了所有正在运行的 nodejs 进程并且它有效.

When I run "npm install", I get an error.

OS: Windows 10 npm: 6.2.0 node: v10.9.0

I already tried to "npm install" after "npm cache verify" but I couldn't solved it.

npm cache verify 
npm instal

npm ERR! path C:\Users\ipiag\products\tor\src\node_modules.node-sass.DELETE\vendor\win32-x64-57\binding.node npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall unlink
npm ERR! Error: EPERM: operation not permitted, unlink 'C:\Users\ipiag\products\tor\src\node_modules.node-sass.DELETE\vendor\win32-x64-57\binding.node' npm ERR! { [Error: EPERM: operation not permitted, unlink 'C:\Users\ipiag\products\tor\src\node_modules.node-sass.DELETE\vendor\win32-x64-57\binding.node'] npm ERR! cause:
npm ERR! { Error: EPERM: operation not permitted, unlink 'C:\Users\ipiag\products\tor\src\node_modules.node-sass.DELETE\vendor\win32-x64-57\binding.node' npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'unlink',
npm ERR! path:
npm ERR!
'C:\Users\ipiag\products\tor\src\node_modules\.node-sass.DELETE\vendor\win32-x64-57\binding.node' }, npm ERR!
stack:
npm ERR! 'Error: EPERM: operation not permitted, unlink \'C:\Users\ipiag\products\tor\src\node_modules\.node-sass.DELETE\vendor\win32-x64-57\binding.node\'', npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'unlink',
npm ERR! path:
npm ERR!
'C:\Users\ipiag\products\tor\src\node_modules\.node-sass.DELETE\vendor\win32-x64-57\binding.node', npm ERR! parent: 'tor' }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It's possible that the file was already in use (by a text editor or antivirus),
npm ERR! or that you lack permissions to access it.
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator (though this is not recommended).

                                                                                                                                                                              npm ERR! A complete log of this run can be found in:                  

npm ERR!
C:\Users\ipiag\AppData\Roaming\npm-cache_logs\2019-06-12T02_32_33_624Z-debug.log

解决方案

In my case, i killed all nodejs running processes and it worked.

这篇关于EPERM:不允许操作,取消链接 'C:\Users\**\node_modules\.node-sass.DELETE\vendor\win32-x64-57\binding.node'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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