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

2023-04-04 14:30:45 浏览数 (1)

代码语言: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:UsersxuhuichenDesktopgpyh-ec-wx-frontnode_modules.bintsserver.cmd
npm ERR! code EEXIST
npm ERR! Refusing to delete C:UsersxuhuichenDesktopgpyh-ec-wx-frontnode_modules.bintsserver.cmd: is outside C:UsersxuhuichenDesktopgpyh-ec-wx-frontnode_modulestypescript and not a link
npm ERR! File exists: C:UsersxuhuichenDesktopgpyh-ec-wx-frontnode_modules.bintsserver.cmd
npm ERR! Move it away, and try again.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:UsersxuhuichenAppDataRoamingnpm-cache_logs2023-03-31T01_48_00_915Z-debug.log

是因为node版本太低

修改版本到16后安装成功

0 人点赞