Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors when running: npm run dev (step 4 in the readme) #7

Open
houghtonweihu opened this issue Jan 15, 2024 · 1 comment
Open

Errors when running: npm run dev (step 4 in the readme) #7

houghtonweihu opened this issue Jan 15, 2024 · 1 comment

Comments

@houghtonweihu
Copy link

I was able to run: python -m ochat.serving.openai_api_server --model openchat/openchat-3.5-0106
I finished steps 1, 2, 3 in readme and when I tried step 4: npm run dev, I got the following:

[email protected] dev
next dev

openchat-ui/node_modules/next/dist/lib/picocolors.js:134
const { env, stdout } = ((_globalThis = globalThis) == null ? void 0 : _globalThis.process) ?? {};
^
SyntaxError: Unexpected token '?'
at wrapSafe (internal/modules/cjs/loader.js:915:16)
at Module._compile (internal/modules/cjs/loader.js:963:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Module.require (internal/modules/cjs/loader.js:887:19)
at Module.mod.require (openchat-ui/node_modules/next/dist/server/require-hook.js:64:28)
at require (internal/modules/cjs/helpers.js:74:18)
at Object. (openchat-ui/node_modules/next/dist/build/output/log.js:55:21)
at Module._compile (internal/modules/cjs/loader.js:999:30)
npm ERR! code 1
npm ERR! path /home/....../openchat-ui
npm ERR! command failed
npm ERR! command sh -c next dev

npm ERR! A complete log of this run can be found in:
npm ERR! /home/...../.npm/_logs/2024-01-15T13_59_35_379Z-debug.log

@sunbc0120
Copy link

upgrade node.js to the latest fixes it for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants