reactjs - 在 npm install 中找不到 Esprima 错误 404
问题描述
我正在尝试在我的 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.
有没有人遇到过这个错误?
解决方案
将我的 npm 版本从 7.14.0 降级到 v6.14.13 后,我能够解决此问题。这可能不是最好的解决方案,但这是我摆脱这个问题的唯一方法。
推荐阅读
- debugging - 如何调试一个文件而不是 Rust 中的包?
- websocket - 发送 SignalR 定时消息
- r - 绘制 3D 密度图使用 gglot/plot_ly
- pine-script - plotshape 没有在正确的烛台上绘制
- javascript - 尝试在 React 中创建标头时出错
- java - 许多无用的 SHOW VARIABLES 查询与 mysql-connector-java-5.1.32
- xamarin.forms - 如何删除 xamarin.android 绑定中的重复事件?
- javascript - React Firebase 不支持的字段值错误 - 未定义的变量
- rust - `(dyn SeekRead + 'static)` 类型的值的大小在编译时无法知道
- android - 没有@Provides-annotated 方法就不能提供 Dagger/MissingBinding Repository