Vant installation error npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but packa

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

It is because the node version is too low.
insert image description here
After modifying the version to 16, the installation is successful.

Guess you like

Origin blog.csdn.net/weixin_48998573/article/details/129872909