原因

编辑器或IDE打开了vue项目,我的是idea打开了 vue

解决办法

关闭IDE或编辑器,删除node_modules文件目录,然后重新执行npm install命令
注意windows系统需要以管理员身份运行命令窗口不然会报权限的错

其他办法尝试

1. cnpm的安装方式(较为推荐)

执行下面命令:

npm install -g cnpm --registry=https://registry.npm.taobao.org


添加系统变量path的内容
因为cnpm会被安装到D:\Program Files\nodejs\node_global下,而系统变量path并未包含该路径。在系统变量path下添加该路径即可正常使用cnpm。
如图,修改系统变量path:

然后输入cnpm -v 查看版本执行cnpm i命令安装依赖模块

2. 清楚cache

npm cache clean
npm cache clean --force

3. 清除代理

npm config rm proxy
npm config rm https-proxy

参考

1. Error: EPERM: operation not permitted, unlink ‘D:\Sources**\node_modules\fsevents\node_modules\abbrev\package.json’
2. 执行npm install 的时候报错
3. 使用npm下载任何文件都报错,报错如下
4. EPERM: operation not permitted, unlink ‘E:\node_modules@types’
5. The operation was rejected by your operating system Module build failed: Error: ENOENT: no such file

Error: EPERM: operation not permitted, unlink 'D:\Sources\**\node_modules\fsevents\node_modules\abbr相关推荐

  1. npm install 提示权限不足 Error: EPERM: operation not permitted, unlink XXX

    问题描述 使用npm install出现 npm install 提示权限不足 Error: EPERM: operation not permitted, unlink XXX提示 原因 这里原因有 ...

  2. NPM报错 Error: EPERM: operation not permitted, unlink......解决办法。使用 rimraf 快速删除node_modules和清除缓存

    由于国内外环境因素,npm install安装依赖的时候经常会出现各种问题,特别是"Error: EPERM: operation not permitted, unlink-"这 ...

  3. npm ERR! Error: EPERM: operation not permitted, unlink

    参考 有很多解决办法,我试了第一种,把node.exe进程关掉,再打开就没问题了

  4. 【解决方法】hexo g 报错 OperationalError: EPERM: operation not permitted, unlink ...

    运行 hexo g 报错如下: FATAL {err: [OperationalError: EPERM: operation not permitted, unlink 'F:\blog\publi ...

  5. Error: EPERM: operation not permitted(权限问题 errro permit)

    npm下载依赖报错 npm ERR! code EPERM npm ERR! syscall unlink npm ERR! path E:\code\20200212\web\cbos2.0-wen ...

  6. npm ERR! { Error: EPERM: operation not permitted, mkdir 'C:\Program Files\nodejs\node_cache\_locks'

    vue项目安装json-server报错npm ERR!  { Error: EPERM: operation not permitted, mkdir 'C:\Program Files\nodej ...

  7. npm安装报错Error: EPERM: operation not permitted解决方案

    电脑重装系统后重新配置环境安装node后,npm命令安装报错 Error: EPERM: operation not permitted npm ERR! code EPERM npm ERR! sy ...

  8. yarn install 遇到的错误消息 - Error EPERM operation not permitted, open .yarnrc

    我在某个 Angular 项目文件下执行 npm install 命令时,遇到如下错误: Error: EPERM: operation not permitted, open C:\Users\i0 ...

  9. npm install 报错(npm ERR! errno -4048,Error: EPERM: operation not permitted,)解决方法

    npm install 报错(npm ERR! errno -4048,Error: EPERM: operation not permitted,)解决方法 参考文章: (1)npm install ...

最新文章

  1. unicode,ansi,utf-8,unicode big endian编码的区别
  2. 分布式RPC框架性能大比拼 dubbo、motan、rpcx、gRPC、thrift的性能比较
  3. 列出5个python标准库_Python常用标准库使用(一)
  4. DL之SoftmaxWithLoss:SoftmaxWithLoss算法(Softmax+交叉熵误差)简介、使用方法、应用案例之详细攻略
  5. 洛谷——P1540 机器翻译
  6. BundlePhobia
  7. 虽然我们可能不想对元素应用3D变换,可我们一样可以开启3D引擎
  8. Web自动化测试中使用groovy实现页面的对象化
  9. lcmgcd因数分解
  10. Luogu1525 关押罪犯
  11. 电感式传感器工作原理与电感式传感器应用案例-博扬智能
  12. EXCEL数组公式(4) : 用例子比较数组公式和非数组公式,发现数组公式 {} 写法的本质在于:每个步骤都会按照 数组去计算
  13. 单片机课设中期报告_本科毕业设计中期检查报告.doc
  14. ITween插件学习记录
  15. MIT6.824 2022 Fault-tolerant Key/Value Service
  16. c++编辑注册表实现右键菜单
  17. PHP与JS---取整数方法int,celi,floor,round
  18. 中国联通亮相5G创新应用大会5G创新开启数字化转型新征程
  19. 掌握 Dart 中库 library 的使用
  20. 从0开始创建vue工程化项目~

热门文章

  1. 政府怎么应用视频直播系统?
  2. 微信小程序开发关于地图图片显示不出问题
  3. 网络学习 DNS服务:域名解析和域名迁徙
  4. 吴恩达机器学习作业ex2-python实现
  5. Python异常:SyntaxError: Non-ASCII character ‘\xe4’ in file…解析
  6. 如何写好大型项目的项目周工作汇报
  7. 机器学习总结(四):RF,SVM和NN的优缺点
  8. 迪博·中国上市公司内部控制指数(2000-2020年)
  9. 自学软件测试,一段心路历程,这个世界根本没有速成的方法
  10. 邮箱伪造之搭建匿名SMTP服务器