티스토리 뷰

 

좀 오래된? 이미지로 생성한 컨테이너에서 codex 실행하니 이런 에러가 났다.

root@5e3f0705a929:~/repo/smarteye# codex
file:///usr/local/lib/node_modules/@openai/codex/bin/codex.js:160
const childResult = await new Promise((resolve) => {
                    ^^^^^

SyntaxError: Unexpected reserved word
    at Loader.moduleStrategy (internal/modules/esm/translators.js:133:18)
    at async link (internal/modules/esm/module_job.js:42:21)

 

Node.js 를 업데이트해주자

 

# nvm으로 최신 LTS 설치
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
source ~/.bashrc
nvm install 24
nvm use 24

 

 

댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2026/05   »
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31
글 보관함