【发布时间】:2016-08-05 13:07:48
【问题描述】:
显然,我在运行npm install 时突然出现以下错误:
npm ERR! No compatible version found: babel-plugin-transform-decorators@^6.13.0
npm ERR! Valid install targets:
npm ERR! 6.8.0, 6.6.5, 6.6.4, 6.6.0, 6.5.0, 6.5.0-1, 6.4.0, 6.3.13, 6.2.4, 6.1.18, 6.1.17, 6.1.10, 6.1.5, 6.1.4, 6.0.14, 6.0.2
我在package.json 中有以下依赖项。我已经尝试将 babel 包更新到最新版本,以及安装 babel-plugin-transform-decorators@6.13.0,但仍然出现此错误。
有人知道原因、有解决方案或面临同样的问题吗?
在this page 看来,6.13.0 版本是在 14 小时前发布的。但是,npm install babel-plugin-transform-decorators 会安装该软件包的先前版本 (6.8.0)。 6.13.0 还没有吗?
我在 Windows 上使用 Node 6.0.0 和 npm 3.8.6。
提前致谢!
{
"babel": "6.3.26",
"babel-core": "6.5.2",
"babel-cli": "^6.7.7",
"babel-loader": "6.2.3",
"babel-polyfill": "6.6.1",
"babel-preset-es2015": "6.5.0",
"babel-preset-react": "6.5.0",
"babel-preset-stage-0": "6.3.13",
"babelify": "7.2.0",
"browserify": "13.0.0",
"chai-enzyme": "0.4.2",
"chai-jquery": "2.0.0",
"cheerio": "0.20.0",
"deep-freeze": "0.0.1",
"enzyme": "2.2.0",
"express": "4.13.4",
"fetch": "1.0.1",
"http-proxy": "1.13.2",
"immutable": "3.7.6",
"isomorphic-fetch": "2.2.1",
"jquery": "2.2.1",
"jsfmt": "0.5.3",
"moment": "2.11.2",
"path": "0.12.7",
"react": "0.14.7",
"react-document-title": "2.0.1",
"react-dom": "0.14.7",
"react-redux": "4.4.0",
"react-router": "2.0.0",
"react-router-redux": "4.0.0",
"react-scroll": "1.0.3",
"redux": "3.3.1",
"redux-form": "4.2.0",
"redux-thunk": "2.0.1",
"request": "2.69.0",
"scroll-behavior": "0.3.2",
"sinon": "1.17.3",
"webpack": "1.12.13",
"whatwg-fetch": "0.11.0",
"chokidar": "git+https://github.com/paulmillr/chokidar.git#1.4.2"
}
【问题讨论】:
-
我没有看到 babel-plugin-transform-decorators 作为你的 package.json 的一部分 - 它是另一个包的依赖项吗?
-
我想是的!现在它可以工作了,所以可能只是 babel-plugin-transform-decorators 在 npm 上不可用...?
标签: javascript npm babeljs