npm install报错peerDependencies WARNING eslint-plugin-vue@^5.2.3 requires a peer of eslint@^5.0.0 but

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]

发布了69 篇原创文章 · 获赞 25 · 访问量 10万+

猜你喜欢

转载自blog.csdn.net/xingmei_ok/article/details/104020411
今日推荐