inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

초보를 위한 도커 안내서

Nodejs 웹 애플리케이션 (이어서)

271

유주호

작성한 질문수 2

1

[root@ip-172-31-33-89 ~]# docker run -p 3000:3000 web /usr/src/app/node_modules/fastify/lib/server.js:38 const hostPath = listenOptions.path ? [listenOptions.path] : [listenOptions.port ?? 0, listenOptions.host ?? 'localhost'] ^ SyntaxError: Unexpected token ? at Module._compile (internal/modules/cjs/loader.js:723:23) at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) at Module.require (internal/modules/cjs/loader.js:692:17) at require (internal/modules/cjs/helpers.js:25:18) at Object.<anonymous> (/usr/src/app/node_modules/fastify/fastify.js:34:54) at Module._compile (internal/modules/cjs/loader.js:778:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
 
여기서 계속 막힙니다..

docker

답변 1

0

subicura

안녕하세요!

Fastify 새버전에서 nodejs 지원 버전이 변경되었네요. 관련 내용 수정하여 가이드 변경하였습니다.

(nodejs 버전 12 -> 16으로 변경)

변경된 가이드로 다시 확인해보시겠어요?

감사합니다! 👏

 

실습코드

0

119

1

-v 옵션 후 workpress database 에러

0

127

1

Error establishing a database connection 질문 드립니다.

0

345

1

다중 컨테이너 실행 (APP)

0

190

1

ghost 실습 데이터베이스 에러

0

328

1

ghost 관리자 화면, 환경변수 url

0

232

1

ghost 실습 - 환경변수 url (2024)

0

243

1

hellonode 실습 질문있습니다.

0

198

1

docker-compose.yml 속성 문의

0

288

1

docker run 명령어중 /bin/sh 파라미터 문의

0

407

1

docker run -p 3000:3000 실행 시 오류

0

462

1

node app.js 실행 에러

0

328

1

Permission denied

0

685

1

result code build 시에 오류 있으신 분들

4

371

2

frontend, backend environment port 속성 관련 질문

0

375

1

app.js 실행 시 http 모듈 관련 이슈

0

346

1

방명록 배포과정중 질문이 있습니다.

0

309

1

Error establishing a database connection 에러 해결좀 해주세요

0

1419

1

docker 설치 오류

0

633

1

도커 기본 명령어 진행 중 막히는 부분

0

362

1

custom docker와 Base Image

0

253

1

안녕하세요 -d 옵션과 --rm 옵션에 대해서 질문을 하고자 합니다!

0

291

1

-v flag 에 질문있습니다

0

256

1

윈도우 파워쉘로 도커를 할라고하는데 컨테이너 만들기는 어떻게 해야되나요

0

789

1