
在我的 Debian 10 上,我也遇到了和許多人一樣的 npm 問題:
npm does not support Node.js v10.15.2
搜尋修復後我發現該錯誤已在 debian 中修復:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=904422
但我有來自 debian apt 的最新版本的 npm 包,它仍然是 5.8.0。有人可以解釋一下 bug 修復是否以及何時會出現在 debian stable 倉庫中嗎?謝謝
答案1
該錯誤已在版本 6.13.4+ds-1 中修復,並且該特定版本(或任何更高版本)將永遠不會添加到 Debian 10 buster-backports
。將會...
錯誤報告的回應之一包括 5.8.0 的補丁,您可以在本地應用該補丁:
sudo sed -i "s/ver: '9'.*/&,/;/ver: '9'/a{ver: '10', min: '10.0.0'}" /usr/share/npm/lib/utils/unsupported.js