by king_magic · 1y ago · 0 comments
npm ERR! code 1 npm ERR! path /usr/local/lib/node_modules/@openai/codex/node_modules/@vscode/ripgrep npm ERR! command failed npm ERR! command sh -c node ./lib/postinstall.js npm ERR! /usr/local/lib/node_modules/@openai/codex/node_modules/@vscode/ripgrep/lib/download.js:199 npm ERR! zipFile?.close();
npm ERR! code 1
npm ERR! path /usr/local/lib/node_modules/@openai/codex/node_modules/@vscode/ripgrep
npm ERR! command failed
npm ERR! command sh -c node ./lib/postinstall.js
npm ERR! /usr/local/lib/node_modules/@openai/codex/node_modules/@vscode/ripgrep/lib/download.js:199
npm ERR! zipFile?.close();
npm ERR! ^
npm ERR!
npm ERR! SyntaxError: Unexpected token '.'Optional chaining was added in v14 (2020), and it sure looks like that is the issue here.
Poor code + doc hygiene is the problem here.
unset GITHUB_TOKEN
npm install --global @openai/codex