javascript - esprima-6 npm 模块发生了什么?

标签 javascript node.js npm ecmascript-6 ecmascript-5

我的 npm 项目将 esprima-six npm 模块作为传递依赖项。最近,它变得无法下载,如 npm install 的以下输出所示:

npm ERR! 404 Not Found
npm ERR! 404 
npm ERR! 404 'esprima-six' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it
npm ERR! 404 It was specified as a dependency of 'syntax-error'
npm ERR! 404 
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, or http url, or git url.

在 npm 站点上,找不到 esprima-6: https://www.npmjs.com/package/esprima-six

但谷歌对该页面的缓存显示它曾经存在:http://webcache.googleusercontent.com/search?q=cache:81uuMFHrDeMJ:https://www.npmjs.com/package/esprima-six+&cd=1&hl=en&ct=clnk&gl=uk&client=ubuntu

那么为什么模块变得不可用?让我的项目再次构建的最佳方法是什么?

编辑:最后我将依赖 esprima-six 的依赖更新为不需要它的更高版本。

最佳答案

esprima-sixunpushlished并且没有了。

很难追查到底发生了什么,但似乎 esprima-six 是一个基于 非官方 harmony branch 的模块2015年5月打折的项目,following deprecation of esprima-fb (添加了 JSX 语法的 fork)。

现在不再需要 esprima-six,因为 Esprima 2.0 officially supports ES6 .

What is the best way to get my project building again?

stance of Ariya Hidayat ,Esprima 的维护者,您应该切换到 Esprima 2.x

My project has the esprima-six npm module as a transitive dependency.

在这种情况下,更新您的直接依赖关系可能就足够了,它们已经切换了。

关于javascript - esprima-6 npm 模块发生了什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33608630/

相关文章:

node.js - 为 React App 构建的 Docker 在 Gitlab CI runner 中失败

node.js - 尝试安装 browser-sync ubuntu 时出现错误

css - 如何使用UnCSS

linux - 在没有互联网访问的情况下安装 unix 程序

javascript - 无法读取未定义 JavaScript 的属性 "First Name"

javascript - 从 Node 服务器提供 Angular 构建输出时出错

javascript - Google Cloud Platform - 使用多行记录

javascript - onclick 在各种文本之间切换

javascript - FluentValidation 使用 EqualValidator 在客户端验证复选框和密码

javascript - 运行用户脚本时 setInterval 使我的浏览器崩溃?