前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >vant安装报错npm WARN read-shrinkwrap This version of npm is compatible with lockfile

vant安装报错npm WARN read-shrinkwrap This version of npm is compatible with lockfile

原创
作者头像
肥晨
发布2023-04-04 14:30:45
1.6K0
发布2023-04-04 14:30:45
举报
文章被收录于专栏:node.js农民工前端node.js
代码语言:css
复制
npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it!
npm ERR! path C:\Users\xuhuichen\Desktop\gpyh-ec-wx-front\node_modules\.bin\tsserver.cmd
npm ERR! code EEXIST
npm ERR! Refusing to delete C:\Users\xuhuichen\Desktop\gpyh-ec-wx-front\node_modules\.bin\tsserver.cmd: is outside C:\Users\xuhuichen\Desktop\gpyh-ec-wx-front\node_modules\typescript and not a link
npm ERR! File exists: C:\Users\xuhuichen\Desktop\gpyh-ec-wx-front\node_modules\.bin\tsserver.cmd
npm ERR! Move it away, and try again.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\xuhuichen\AppData\Roaming\npm-cache\_logs\2023-03-31T01_48_00_915Z-debug.log

是因为node版本太低

修改版本到16后安装成功

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档