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

What happened to the esprima-six npm module?

我的 npm 项目将 esprima-6 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

但是 Google 的页面缓存显示它曾经存在: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-6 的依赖项更新为不需要它的更高版本。

esprima-six has been unpushlished 已经不存在了。

很难追查到底发生了什么,但似乎 esprima-six 是一个基于 非官方 harmony branch of the project that has been discountinoud in May 2015, following the deprecation of esprima-fb 的模块(一个分支添加了 JSX 语法。

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

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

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

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

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