使用命令 npm install 给出以下错误
错误:EPERM,取消链接
系统信息: 鲍尔版本:1.3.12 Node 版本:0.10.35 操作系统:Windows8
我尝试了以下解决方法,但没有任何结果。
- 清理 bower 缓存
- 卸载 bower
- 使用 npm 更新 decompress-zip
- 再次安装 bower
它对我不起作用,请给我一些解决方案
最佳答案
我遇到了这个问题,是的,在 Windows 10 中。
解决方案?
禁用对该文件夹(包含 package.json 的文件夹)内容的索引!!
在 Windows Shell(文件管理器)上,按照以下步骤操作:
- Right click on the folder with the error, choose 'Properties'
- Click the 'Advanced...' button.
- Uncheck the checkbox 'Allow files in this folder to have contents indexed in addition to file properties'.
- Press 'OK'.
- On the previous Properties dialog (visible again), press 'Apply'
- Check radio button 'Apply changes to this folder, subfolder and files'.
- Press 'OK'.
- (can take a while)
- Press 'OK' (to close properties dialog).
- Works!
关于node.js - npm install 给出错误 : EPERM, 取消链接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27845251/