>npm i
npm ERR! code ENOVERSIONS
npm ERR! No versions available for vue-plugin-rely
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Administrator\AppData\Local\npm-cach
e\_logs\2023-09-04T10_29_09_768Z-debug-0.log
查看资料,发现项目被作者投毒。其中chalk-next、chokidar-next、vue-plugin-rely 三个插件有删除项目文件的操作
npm config get registry
https://registry.npmjs.org/
查不到vue-plugin-rely
更换腾迅云镜像
npm config set registry http://mirrors.cloud.tencent.com/npm/
解决了
有关VUE命令如下:
node v16.20.2 npm 8.19.4 npm config get registry 查看镜像源 官方源镜像源:https://registry.npmjs.org/ 由于chalk-next、chokidar-next、vue-plugin-rely三个插件被删除。 npm config set registry http ://mirrors.cloud.tencent.com/npm/ 设置新镜像源 npm i 初始化 npm run serve 运行 npm run build 构建 package.json 全局插件 删除package-lock.json node-modules 可重新安装 npm i --force 强制安装,但缺少的插件安装不上 npm i --legacy-peer-deps 兼容老的,但缺少的插件安装不上 npm cache clean --force 清缓存 npm uninstall eslint@7.32.0 卸载版本 npm show eslint versions 查看所有版本 如"@vue/eslint-config-prettier": "6.15.0", npm show @vue/eslint-config-prettier versions npm info @vue/eslint-config-prettier 版本信息 npm install vue-plugin-rely 单独安装一个插件 npm list vue admin-pro@2.0.9 D:\AppCode\lingkang-admin-web `-- (empty)
END
如本资源侵犯了您的权益,请联系投诉邮箱admin@wmphp.com进行举报!我们将在收到邮件的1个小时内处理完毕。
本站仅为平台,发布的资源均为用户投稿或转载!所有资源仅供参考学习使用,请在下载后的24小时内删除,禁止商用!
Wmphp.com(完美源码)助力正版,如您有自己的原创产品,可以联系客服投稿,代理出售!
Wmphp.com(完美源码)客服QQ:136882447
Wmphp.com(完美源码)商务电话(仅对企业客户/个人用户):15120086569 (微信同步)
请注意:本站不提供任何免费的技术咨询服务,为了节约时间,下载前 请确认自己会技术
完美源码 » vue admin pro项目 vue-plugin-rely报错
完美源码 » vue admin pro项目 vue-plugin-rely报错