javascript - EPERM : operation not permitted, 取消链接 'C:\Users\**\node_modules\.node-sass.DELETE\vendor\win32-x64-57\binding.node'

标签 javascript node.js npm

当我运行“npm install”时,出现错误。

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



我已经尝试过"npm install""npm cache verify" 之后但我无法解决它。
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

最佳答案

就我而言,我杀死了所有正在运行的 nodejs 进程并且它起作用了。

关于javascript - EPERM : operation not permitted, 取消链接 'C:\Users\**\node_modules\.node-sass.DELETE\vendor\win32-x64-57\binding.node',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56554646/

相关文章:

Javascript 循环下拉选项

Javascript清除脏话评论

javascript - 如何仅扩展平面列表中的一项

javascript - 如何使用 npm 检查

macos - 通过 PIP 安装 NPM,但得到 "npm: command not found"

javascript - Rails 3.2 Ajaxified 应用程序中是否有管理状态的标准方法?

javascript - 无法在 Express js 中处理 POST 请求

node.js - 如何使用 npm babel 和 Commanderjs 将选项传递给脚本

typescript - 打字 vs @types NPM 作用域

javascript - 无法用 'webpack' 替换命令 'npm run build'