sid/stretch 시스템에 최신 6.x 또는 7.x 버전의 nodejs(2017년 4월)를 설치하는 방법은 무엇입니까?

sid/stretch 시스템에 최신 6.x 또는 7.x 버전의 nodejs(2017년 4월)를 설치하는 방법은 무엇입니까?

노드 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

nvm은 Node js를 설치하는 새로운 방법입니다. 사용 중인 스크립트는 더 이상 사용되지 않으므로 우분투를 사용하는 경우 여기 Node js를 설치하는 방법이 있습니다. スクリーンショットが私の主張を証明しています 일부 종속성 설치

sudo apt-get install build-essential checkinstall

installlibssl

sudo apt-get install libssl-dev

nvm 받기

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.0/install.sh | bash

노드 설치

 nvm install node 

おすすめ記事