簡體   English   中英

未找到兼容版本:babel-plugin-transform-decorators@^6.13.0

[英]No compatible version found: babel-plugin-transform-decorators@^6.13.0

顯然,突然間,我運行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,但我仍然收到此錯誤。

有人知道為什么,有解決方案或面臨同樣的問題嗎?

在我看來,從這個頁面的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"
}

我以為你的~/.npm目錄中有一個錯誤的緩存。 這種問題可以通過npm cache clear來修復。

現在它可以工作,沒有任何變化,所以它可能只是那個babel-plugin-transform-decorators在npm沒有...?

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM