ztjhz / BetterChatGPT

An amazing UI for OpenAI's ChatGPT (Website + Windows + MacOS + Linux)
http://bettergpt.chat/
Creative Commons Zero v1.0 Universal
8.14k stars 2.75k forks source link

local deployment failed at npm run dev #107

Closed aopaw closed 1 year ago

aopaw commented 1 year ago

Hello, I at the beginning have this error: Error: The specified module could not be found. @swc\core-win32-x64-msvc\swc.win32-x64-msvc.node

Following this one https://stackoverflow.com/questions/69859120/the-specified-module-could-not-be-found-d-next-js-firstapp-node-modules-n I install the microsoft redist package, and the error no longer comes out.

But it still failed when running it.

PS D:\gpt\FreeChatGPT> npm run dev

chatgpt-free-app@0.0.0 dev D:\gpt\FreeChatGPT vite

file:///D:/gpt/FreeChatGPT/node_modules/vite/bin/vite.js:7 await import('source-map-support').then((r) => r.default.install()) ^^^^^

SyntaxError: Unexpected reserved word  at Loader.moduleStrategy (internal/modules/esm/translators.js:81:18)  at async link (internal/modules/esm/module_job.js:37:21) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! chatgpt-free-app@0.0.0 dev: vite npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the chatgpt-free-app@0.0.0 dev script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache_logs\2023-03-21T04_22_37_340Z-debug.log

ayaka14732 commented 1 year ago

You may need to upgrade your Node.js version if it is outdated.

aopaw commented 1 year ago

You may need to upgrade your Node.js version if it is outdated.

It works now. Thank you.