1、問題場景:
npm install 報錯,以爲是npm問題,改成cnpm install,也還是報錯,根據錯誤信息提示,推斷是eslint版本不兼容。
報錯提示:
peerDependencies WARNING eslint-plugin-vue@^5.2.3 requires a peer of eslint@^5.0.0 but [email protected] was installed
peerDependencies WARNING [email protected] › vue-eslint-parser@^5.0.0 requires a peer of eslint@^5.0.0 but [email protected] was installed
peerDependencies WARNING eslint-config-standard@^14.1.0 requires a peer of eslint-plugin-node@>=9.1.0 but [email protected] was installed
deprecate @vue/[email protected] › @vue/[email protected] › core-js@^2.6.5 core-js@<3 is no longer maintained and not recommended for usage
due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
deprecate @vue/[email protected] › [email protected] › [email protected] › [email protected] › circular-json@^0.3.1 CircularJSON is in maintena
nce only, flatted is its successor.
2、解決辦法
安裝固定版本npm i [email protected]