【问题标题】:How do you fix 'EPERM: operation not permitted, unlink {FILE PATH}' errors?如何修复“EPERM:不允许操作,取消链接 {FILE PATH}”错误?
【发布时间】:2021-03-22 14:52:11
【问题描述】:

每当我现在在我的项目上运行 npm run build 时,无论出于何种原因,我都会收到一条错误消息:

Error: EPERM: operation not permitted, unlink '{File path here}'] {
  errno: -4048,
  code: 'EPERM',
  syscall: 'unlink',
  path: '{File path here}'
}

我试过了:

  • npm i
  • npm install --no-optional
  • npm i -g npm@5.3
  • npm cache clean
  • npm cache clean --force
  • npm unlink

关于如何解决此问题的任何想法?

【问题讨论】:

    标签: node.js npm visual-studio-code


    【解决方案1】:

    npm unlink之前,首先要执行npm unlink --no-save your-packge

    【讨论】:

      猜你喜欢
      • 2023-03-07
      • 2019-11-04
      • 2020-03-05
      • 1970-01-01
      • 1970-01-01
      • 2018-02-15
      • 2018-05-24
      • 1970-01-01
      • 2023-01-29
      相关资源
      最近更新 更多