【问题标题】:How to install eslint for a javascript project?如何为 javascript 项目安装 eslint?
【发布时间】:2021-11-27 19:15:29
【问题描述】:

我正在尝试为 javascript 项目安装 eslint。但是当我运行命令时:npm install --save-dev eslint

我收到此错误:

npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@humanwhocodes%2fconfig-array - Not found
npm ERR! 404
npm ERR! 404  '@humanwhocodes/config-array@^0.5.0' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 It was specified as a dependency of 'eslint'
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2021-10-07T17_32_17_971Z-debug.log

我做错了什么?

【问题讨论】:

    标签: node.js npm eslint


    【解决方案1】:

    当前出现中断,查看状态更新:https://status.npmjs.org/

    【讨论】:

      猜你喜欢
      • 2017-06-16
      • 2018-10-10
      • 2017-07-06
      • 1970-01-01
      • 2018-08-20
      • 2016-12-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多