본문 바로가기

보드팩토리 – SBC 커뮤니티

기술 Q&A

프로그래밍 HOT

Node.js 설치 버전이 너무 낮아요 도와주세요

작성자라떼파이 Lv.2 준회원 작성일 조회409 댓글2

본문

오렌지파이 Zero 3 · Debian 12 를 쓰고 있습니다. 전원은 PD 65W 충전기 입니다.

apt 로 설치한 node 가 너무 오래된 버전이라 패키지가 설치되지 않습니다.

nvm 도 써 봤습니다.

const http = require('http');
http.createServer((req, res) => {
  res.end('hello');
}).listen(3000);

어떻게 확인하면 될까요?

추천0

답변 2

답변있음
3

NodeSource 저장소를 추가하면 최신 LTS 를 받을 수 있습니다.

const http = require('http');
http.createServer((req, res) => {
  res.end('hello');
}).listen(3000);
초보파이
3

메모리가 적은 보드는 스왑을 늘린 뒤 설치하세요.

const http = require('http');
http.createServer((req, res) => {
  res.end('hello');
}).listen(3000);
준혁