简体   繁体   English

在 npm 安装中找不到 Esprima 错误 404

[英]Esprima error 404 Not Found in npm install

I'm trying to install all dependencies in my react project, but when I run npm install I'm getting some errors related to esprima:我正在尝试在我的 react 项目中安装所有依赖项,但是当我运行 npm install 时,我遇到了一些与 esprima 相关的错误:

npm ERR! 404 Not Found - GET https://codeload.github.com/ariya/esprima/legacy.tar.gz/master
npm ERR! npm ERR! 404 
npm ERR! npm ERR! 404  'esprima@https://github.com/ariya/esprima/tarball/master' is not in the npm registry.
npm ERR! npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! npm ERR! 404 
npm ERR! npm ERR! 404 Note that you can also install from a
npm ERR! npm ERR! 404 tarball, folder, http url, or git url.

Did anyone experience this error?有没有人遇到过这个错误?

I was able to resolve this issue after downgrade my npm version from 7.14.0 to v6.14.13.将我的 npm 版本从 7.14.0 降级到 v6.14.13 后,我能够解决此问题。 It may not be the best solution, but it was the only way I could get rid of this problem.这可能不是最好的解决方案,但这是我摆脱这个问题的唯一方法。

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

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