
節點 6.x 和 7.x 的兩個命令都失敗
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs
curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
sudo apt-get install -y nodejs
該命令失敗並顯示:
E: Failed to fetch https://deb.nodesource.com/node_6.x/dists/jessie/main/source/Sources Received HTTP code 403 from proxy after CONNECT
回購協議損壞了嗎?
我目前使用的是 Debian Sid (stretch),腳本依賴的一些變數似乎與我的不同。
答案1
答案2
您可能想要使用 nvm(節點版本管理員)來安裝任何版本的 node.js
若要安裝 nvm,請造訪此關聯