@1.npm WARN deprecated eslint-loader@3.0.4: This loader has been deprecated. Please use eslint-webpack-plugin

试过的不行的方法:

  1. 配置淘宝镜像
npm config set registry https://registry.npm.taobao.org
npm config get registry

2.降低npm版本+1方法
1、首先降低npm版本 npm install npm@4.6.1 -g
2、使用淘宝镜像 npm config set registry https://registry.npm.taobao.org
3、验证一下是否成功 npm config get registry
4、清楚一下安装缓存 npm cache clean --force
5、安装cnpm npm install -g cnpm --registry=https://registry.npm.taobao.org
6、cnpm -v查看是否安装成功
3.等等

最后我断开了我的vpn连接就正常了

@2. npm WARN tar ENOENT: no such file or directory, lstat '/demo/node_modules/

删除package-lock.josn npm install

@3. operation not permitted, unlink......

删除node modules中的全部文件。

清除Npm缓存(推荐通过安装rimraf来删除)

npm install -g rimraf
rimraf node_modules

rimraf 删除node包报错
npm install  部分报错心得总结

解决:1.为cmd开启管理员权限:搜索栏搜索cmd > 右键打开文件位置 > 在命令提示符上右键 > 快捷方式 高级 > 以管理员的身份运行 > 确定

2.搜索栏搜素powerShell ,选择以管理员打开,输入set-ExecutionPolicy RemoteSigned

相关文章:

  • 2021-11-26
  • 2021-11-07
  • 2021-08-25
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-08-15
  • 2021-06-06
  • 2022-12-23
相关资源
相似解决方案