![sid/stretch 시스템에 최신 6.x 또는 7.x 버전의 nodejs(2017년 4월)를 설치하는 방법은 무엇입니까?](https://linux55.com/image/110498/sid%2Fstretch%20%EC%8B%9C%EC%8A%A4%ED%85%9C%EC%97%90%20%EC%B5%9C%EC%8B%A0%206.x%20%EB%98%90%EB%8A%94%207.x%20%EB%B2%84%EC%A0%84%EC%9D%98%20nodejs(2017%EB%85%84%204%EC%9B%94)%EB%A5%BC%20%EC%84%A4%EC%B9%98%ED%95%98%EB%8A%94%20%EB%B0%A9%EB%B2%95%EC%9D%80%20%EB%AC%B4%EC%97%87%EC%9E%85%EB%8B%88%EA%B9%8C%3F.png)
노드 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
답변2
모든 버전의 node.js를 설치하려면 nvm(노드 버전 관리자)을 사용할 수 있습니다.
nvm을 설치하려면 여기를 방문하세요.협회