node.js - npm install 给出错误 : EPERM, 取消链接

标签 node.js gruntjs npm bower

使用命令 npm install 给出以下错误

错误:EPERM,取消链接

系统信息: 鲍尔版本:1.3.12 Node 版本:0.10.35 操作系统:Windows8

我尝试了以下解决方法,但没有任何结果。

  1. 清理 bower 缓存
  2. 卸载 bower
  3. 使用 npm 更新 decompress-zip
  4. 再次安装 bower

它对我不起作用,请给我一些解决方案

最佳答案

我遇到了这个问题,是的,在 Windows 10 中。

解决方案?

禁用对该文件夹(包含 package.json 的文件夹)内容的索引!!

在 Windows Shell(文件管理器)上,按照以下步骤操作:

  1. Right click on the folder with the error, choose 'Properties'
  2. Click the 'Advanced...' button.
  3. Uncheck the checkbox 'Allow files in this folder to have contents indexed in addition to file properties'.
  4. Press 'OK'.
  5. On the previous Properties dialog (visible again), press 'Apply'
  6. Check radio button 'Apply changes to this folder, subfolder and files'.
  7. Press 'OK'.
  8. (can take a while)
  9. Press 'OK' (to close properties dialog).
  10. Works!

Screenshot of the infamous checkbox

关于node.js - npm install 给出错误 : EPERM, 取消链接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27845251/

相关文章:

node.js - 如何在 package.json 中指定依赖项的最小和最大版本?

node.js - 使用 Yarn 依赖项为 Node 应用程序构建 Docker 镜像

node.js - 如何使用 mongoose 从数组字段中获取特定对象

php - Nodejs连接数据库出错

node.js - Redis + Node.js - 我如何检索值

grunt 构建期间的 XML 文件预处理

javascript - 少任务未找到错误

javascript - 为什么 Vue 单文件组件会编译成这么大的文件?

javascript - 在 AWS Lambda 中模拟

node.js - 未捕获的断言错误 : expected 404 to equal 405