简体   繁体   English

eslint-config-airbnb-base@13.1.0从npm中移除了吗? 它没有安装

[英]Is eslint-config-airbnb-base@13.1.0 removed from npm? It is not getting installed

While installing packages using npm on server, I am getting 404 error related to this module, eslint-config-airbnb-base@13.1.0 .在服务器上使用 npm 安装软件包时,出现与此模块eslint-config-airbnb-base@13.1.0相关的 404 错误。 Can anyone help me resolve this?谁能帮我解决这个问题?

I tried to install it separately too, but still got errors related to 404. Here's the logs:我也尝试单独安装它,但仍然出现与 404 相关的错误。这是日志:

npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: eslint-config-airbnb-base@13.1.0
npm ERR! Found: eslint@6.0.1
npm ERR! node_modules/eslint
npm ERR!   dev eslint@"6.0.1" from the root project
npm ERR!   peer eslint@"2.x - 6.x" from eslint-plugin-import@2.18.0
npm ERR!   node_modules/eslint-plugin-import
npm ERR!     dev eslint-plugin-import@"2.18.0" from the root project
npm ERR!     peer eslint-plugin-import@"^2.14.0" from eslint-config-airbnb-base@13.1.0
npm ERR!     node_modules/eslint-config-airbnb-base
npm ERR!       dev eslint-config-airbnb-base@"13.1.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer eslint@"^4.19.1 || ^5.3.0" from eslint-config-airbnb-base@13.1.0
npm ERR! node_modules/eslint-config-airbnb-base
npm ERR!   dev eslint-config-airbnb-base@"13.1.0" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: eslint@5.16.0
npm ERR! node_modules/eslint
npm ERR!   peer eslint@"^4.19.1 || ^5.3.0" from eslint-config-airbnb-base@13.1.0
npm ERR!   node_modules/eslint-config-airbnb-base
npm ERR!     dev eslint-config-airbnb-base@"13.1.0" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /root/.npm/eresolve-report.txt for a full report.

It was a peer dependency issue usually occurs in npm version => 7, hence we have to use a flag, and install, the command goes like这是一个对等依赖问题,通常发生在 npm 版本 => 7,因此我们必须使用一个标志,然后安装,命令如下

npm i --leagcy-peer-deps

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM