【发布时间】: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
我做错了什么?
【问题讨论】: