본문 바로가기

보드팩토리 – SBC 커뮤니티

기술 Q&A

프로그래밍

라떼판다 3 델타 에서 웹서버 띄우는 방법 (급함)

작성자스마트홈러 Lv.2 준회원 작성일 조회71 댓글1

본문

라떼판다 3 델타 · Ubuntu 22.04 를 쓰고 있습니다. 전원은 휴대폰 충전기(5V 2A) 입니다.

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

nvm 도 써 봤습니다.

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

혹시 원인을 아시는 분 계실까요?

추천0

답변 1

답변있음
2

node-gyp 는 python3 와 build-essential 이 있어야 합니다.

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