ubuntu nodejs install error

dalonn98·2023년 9월 13일
0

삽질로그

목록 보기
2/4

nodejs를 설치하려다 apt install 으로 먼저 해봤는데 12버전이 설치됐다.
그래서 apt purge 로 삭제 후 https://github.com/nodesource/distributions/blob/master/README.md의 내용대로 다시 설치를 하던 중 E: Sub-process /usr/bin/dpkg returned an error code (1)라는 에러가 떴다.

위 가이드에서 삭제하는 명령어를 입력했을 때 The following packages were automatically installed and are no longer required:와 함께 여러가지 패키지명이 출력되며 Use 'sudo apt autoremove' to remove them.를 사용하라고 뜬다.

sudo apt autoremove

이후 다시 가이드대로 진행하면 정상적으로 설치가 된다.

profile
Cloud Engineer / interested in solutions architect & devops

0개의 댓글