chatgpt-web
chatgpt-web copied to clipboard
pnpm dev前端启动的时候报错
-desktop:/var/www/html/chatgpt-web$ pnpm dev
[email protected] dev /var/www/html/chatgpt-web vite
error when starting dev server: Error: listen EACCES: permission denied 0.0.0.0:1002 at Server.setupListenHandle [as _listen2] (node:net:1723:21) at listenInCluster (node:net:1788:12) at doListen (node:net:1937:7) at process.processTicksAndRejections (node:internal/process/task_queues:83:21) ELIFECYCLE Command failed with exit code 1.
修改vite.config.ts
,使用1024之后的端口
Non-privileged user (not root) can't open a listening socket on ports below 1024.
https://stackoverflow.com/questions/60372618/nodejs-listen-eacces-permission-denied-0-0-0-080