我最近从我编写的旧锅炉中取出,并尝试 npm install,但当安装命中“babel-preset-es2015”时,我不断收到列出的错误:
npm ERR! Darwin 15.3.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "i"
npm ERR! node v5.6.0
npm ERR! npm v3.6.0
npm ERR! No compatible version found: babel-helper-hoist-variables@^6.6.5
npm ERR! Valid install targets:
npm ERR! 6.6.4, 6.5.0, 6.5.0-1, 6.3.13, 6.2.4, 6.1.18, 6.1.17, 6.1.16, 6.1.13, 6.1.12, 6.1.10, 6.1.9, 6.1.8, 6.1.7, 6.1.6, 6.1.5, 6.0.15, 6.0.14, 6.0.2, 6.0.0
有谁知道如何解决这个错误?我尝试更新所有 babel 依赖项、升级 Node 、重新安装 npm ——但我无法摆脱这个错误。 babel-preset-es2015 和我的 Node 环境有问题吗?
满锅炉位于 https://github.com/breezykermo/react-redux-boiler ,查看 package.json 和其他可能相关的文件。
谢谢!
最佳答案
您可能有一个未正确更新自身的 npm 缓存。该软件包的最新版本肯定是 6.6.5
,它与该版本范围匹配。
关于node.js - 巴贝尔预设-es2015 : No compatible version found: babel-helper-hoist-variables@^6. 6.5,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35889889/