Skip to content
upupzealot edited this page Nov 16, 2021 · 3 revisions

使用原生 npm 进行安装,暂时不支持 cnpm

npm install

因为用了 npm v6.9.0 以上的 package-aliases 特性安装所依赖库的不同版本,并进行切换,暂时不支持 cnpm

常见错误

Vue packages version mismatch

是由于 vue 和 vue-template-compiler 两个依赖的版本不一致导致的,检查 node_modules 中 vue-template-compiler 和 vue 的版本是否一致,否则重新安装即可。

The package-lock.json file was created with an old version of npm,
lockfile so supplemental metadata must be fetched from the registry.

是由于新版的 npm 更改了对 package-aliases 特性的支持,暂时切回 v14 版本的 Nodejs 可暂时解决。