下一個是什麼意思在package.json依賴?「next」在package.json依賴中意味着什麼?
"dependencies": {
"react": "^15.4.2",
"react-dom": "^15.4.2",
"react-router-dom": "next"
}
下一個是什麼意思在package.json依賴?「next」在package.json依賴中意味着什麼?
"dependencies": {
"react": "^15.4.2",
"react-dom": "^15.4.2",
"react-router-dom": "next"
}
The next tag is used by some projects to identify the upcoming version.By default, other than latest, no tag has any special significance to npm itself.
具體,並根據文檔,我發現這是很有幫助的:
By default, the latest tag is used by npm to identify the current version of a package, and npm install (without any @ or @ specifier) installs the latest tag. Typically, projects only use the "latest" tag for stable release versions, and use other tags for unstable versions such as prereleases.
The next tag is used by some projects to identify the upcoming version.
By default, other than latest, no tag has any special significance to npm itself.
所以,舉例來說,我不得不故宮本身產生NPM ERR相關的一些問題!錯誤:EACCES:在安裝包權限被拒絕的錯誤,我第一次通過恢復到故宮的早期版本(從5.4.0)修正:
npm install -g [email protected]
但NPM也是那些包的一個確實使用「下一個」標籤中的分佈,所以要充分利用,在最新的,但沒有正式「穩定版」,你也可以運行:
npm install -g [email protected]
裏面裝5.5.1
運行:npm show npm versions --json
顯示以下版本歷史以給出想法究竟是什麼安裝的: [... 「5.3.0」, 「5.4.0」, 「5.4.1」, 「5.4.2」, 「 5.5.0「, 」5.5.1「 ]