我有一个问题,每次我安装一些eslint插件,出现一个错误,它无法安装,几个月前它还可以工作
错误日志:
npm i -D eslint-plugin-sort-destructure-keys (or another eslint plugin)
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@ndk%2fenv - Not found
npm ERR! 404
npm ERR! 404 '@ndk/env@0.0.3' 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 'eslintcc'
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! /home/lenov/.npm/_logs/2021-02-05T09_14_56_820Z-debug.log
有人知道如何克服这个吗?
尝试用这个
配置npmnpm config set registry http://registry.npmjs.org
npm registry doc