npm ERR!错误:EPERM:不允许操作,取消链接 [英] npm ERR! Error: EPERM: operation not permitted, unlink

查看:132
本文介绍了npm ERR!错误:EPERM:不允许操作,取消链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  • 操作系统:Windows 10.
  • npm版本:6.9.0
  • 节点版本:12.4.0

我正在处理一个Expo应用程序. 我想在我的博览会应用程序上安装所有软件包(npm install).但是,发生了错误:

I'm working on an expo application. I would like to install all the packages on my expo application (npm install). But, an error occured :

17254 error [OperationalError: EPERM: operation not permitted, unlink ... 我已经在很多主题上看到了这个错误,但是没有一个答案可以解决我的问题.

17254 error [OperationalError: EPERM: operation not permitted, unlink ... I have seen this error on many subjects, but no one answer to my problem.

我已经尝试过:

  1. 以管理员身份启动我的终端机.
  2. npm config set safe-perm = true.
  3. npm install --no-bin-links
  4. npm缓存清除--force

我有一个错误消息的例子:

An exemple of error message that I have :

17254 error   cause: [Error: EPERM: operation not permitted, unlink 'C:\Users\Thomas\Desktop\someDirectory\someDirectory\someDirectory\someDirectory\node_modules\.staging\react-native-99ed309f\Libraries\Renderer\oss\ReactFabric-dev.js'] {
17254 error     errno: -4048,
17254 error     code: 'EPERM',
17254 error     syscall: 'unlink',
17254 error     path: 'C:\\Users\\Thomas\\Desktop\\someDirectory\\someDirectory\\someDirectory\\someDirectory\\node_modules\\.staging\\react-native-99ed309f\\Libraries\\Renderer\\oss\\ReactFabric-dev.js'
17254 error   },
17254 error   stack: 'Error: EPERM: operation not permitted, unlink ' +
17254 error     "'C:\\Users\\Thomas\\Desktop\\someDirectory\\someDirectory\\someDirectory\\someDirectory\\node_modules\\.staging\\react-native-99ed309f\\Libraries\\Renderer\\oss\\ReactFabric-dev.js'",
17254 error   errno: -4048,
17254 error   code: 'EPERM',
17254 error   syscall: 'unlink',
17254 error   path: 'C:\\Users\\Thomas\\Desktop\\someDirectory\\someDirectory\\someDirectory\\someDirectory\\node_modules\\.staging\\react-native-99ed309f\\Libraries\\Renderer\\oss\\ReactFabric-dev.js'
17254 error }
17255 error The operation was rejected by your operating system.
17255 error It's possible that the file was already in use (by a text editor or antivirus),
17255 error or that you lack permissions to access it.
17255 error
17255 error If you believe this might be a permissions issue, please double-check the
17255 error permissions of the file and its containing directories, or try running
17255 error the command again as root/Administrator (though this is not recommended).
17256 verbose exit [ -4048, true ] ```

推荐答案

是否有另一个正在运行的节点实例,也正在使用ReactFabric-dev.js?如果是这样,请终止并重试.另外,请尝试将您的项目移至根目录为"closer"的文件夹. Windows有时会混淆很长的路径.

Is there a another instance of node running, that is also using ReactFabric-dev.js? If so, terminate and retry. Also try to move your project to a folder "closer" to root. Windows sometimes gets confused with very long paths.

这篇关于npm ERR!错误:EPERM:不允许操作,取消链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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