1
我試圖進入一個遺留程序,該程序沒有任何其他開發人員保留一年前工作過。npm install - 錯誤:找不到兼容版本:[email protected]'^0.17.0' - 手動安裝然後安裝包的循環
自述文件說通過npm install進行安裝。當我運行它時,它抱怨節點的版本和建議節點0.8.x.根據我使用nvm install 0.8.9
然後做nvm use 0.8.9
。
當我運行NPM安裝,我現在得到:
npm ERR! Error: No compatible version found: [email protected]'^0.17.0'
npm ERR! Valid install targets:
npm ERR! ["0.0.1","0.0.2","0.0.3","0.0.4","0.1.1","0.1.2","0.1.3","0.1.4","0.1.5","0.2.0","0.2.1","0.2.2","0.3.0","0.3.1","0.3.2","0.4.0","0.4.1","0.4.2","0.5.0","0.5.1","0.5.2","0.6.0","0.6.1","0.6.2","0.7.0","0.8.0","0.8.1","0.8.2","0.8.3","0.9.0","0.9.1","0.9.2","0.10.0","0.10.1","0.10.2","0.10.3","0.10.4","0.10.5","0.10.6","0.10.7","0.10.8","0.11.0","0.12.0","0.12.1","0.12.2","0.12.3","0.12.4","0.13.0","0.13.1","0.14.0","0.15.0","0.16.0","0.17.0","0.18.0","0.19.0","0.20.0"]
npm ERR! at installTargetsError (~/.nvm/v0.8.9/lib/node_modules/npm/lib/cache.js:553:10)
npm ERR! at ~/.nvm/v0.8.9/lib/node_modules/npm/lib/cache.js:477:15
npm ERR! at saved (~/.nvm/v0.8.9/lib/node_modules/npm/node_modules/npm-registry-client/lib/get.js:138:7)
npm ERR! at ~/.nvm/v0.8.9/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:220:7
npm ERR! at Object.oncomplete (fs.js:297:15)
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <[email protected]>
npm ERR! System Darwin 14.5.0
npm ERR! command "~/.nvm/v0.8.9/bin/node" "~/.nvm/v0.8.9/bin/npm" "install"
npm ERR! cwd ~/workspace/path/to/project
npm ERR! node -v v0.8.9
npm ERR! npm -v 1.1.61
讓我困擾的是,它引用^0.17.0
和讀取的事實,聽起來好像是應該支持任何0.x.y
版本是0.17.0或更新或更大。由於0.17.0,0.18.0,0.19.0和0.20.0在列表中,我會認爲事情應該只是桃色。
如果我node install [email protected]
然後它似乎工作,然後我做另一個npm install
並得到像上述新的包錯誤,然後我手動做的版本,它似乎循環回cheerio包。
關於我失蹤的想法?
命令一樣'NPM命令行安裝cheerio @^0.17.0'做工精細,但是當它的package.json似乎沒有正常運行。作爲我的故障排除的一部分,我刪除了^ s和〜s,這似乎讓我更進一步,因爲它使用了特定的版本。我猜無論讀取package.json並且下載是否有問題? –