我的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的依赖项更新到了不需要它的后续版本。
发布于 2015-12-16 02:37:50
esprima-six一直是未推,现在已经不复存在了。
很难追踪到底发生了什么,但esprima-six似乎是基于2015年5月被取消的项目的非官方分支,下面是 the esprima-fb (一个添加了JSX语法的叉子)。
现在不再需要esprima-six了,就像Esprima2.0正式支持ES6一样。
什么是最好的方法,使我的项目建设再次?
Ariya Hidayat的立场是Esprima的维护者,您应该只需切换到Esprima 2.x。
我的项目将
esprima-sixnpm模块作为传递依赖项。
在这种情况下,可能已经足够更新您的直接依赖关系了,它们已经切换了。
https://stackoverflow.com/questions/33608630
复制相似问题