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

怎么本地启动 #23

Closed
loshammo opened this issue Mar 25, 2023 · 4 comments
Closed

怎么本地启动 #23

loshammo opened this issue Mar 25, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@loshammo
Copy link

大佬,我刚接触前端代码,我想加一些日志输出,想知道这个怎么在本地启动调试呢?
对node版本有什么要求吗 ?

现在执行

npm install --save next react react-dom
next build
bash: next: command not found
@Yidadaa
Copy link
Collaborator

Yidadaa commented Mar 25, 2023

试试 yarn install && yarn dev

@loshammo loshammo reopened this Mar 25, 2023
@loshammo
Copy link
Author

大佬,执行yarn install && yarn dev 报错

$ yarn install && yarn dev
yarn install v1.22.19
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
Done in 13.98s.
yarn run v1.22.19
$ cross-env COMMIT_ID=$(git rev-parse --short HEAD) next dev
next was unexpected at this time.

F:\dlplace\ChatGPT-Next-Web>  "F:\dlplace\ChatGPT-Next-Web\node_modules\.bin\\node.exe"  "F:\dlplace\ChatGPT-Next-Web\node_modules\.bin\\..\cross-env\src\bin\cross-env.js" COMMIT_ID=$(git rev-parse --short HEAD) next dev
error Command failed with exit code 255.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

@Yidadaa Yidadaa added the bug Something isn't working label Mar 25, 2023
@Yidadaa
Copy link
Collaborator

Yidadaa commented Mar 25, 2023

已经确认是 bug,我会马上修复。不过不建议你在 windows 上本地开发,openai api 的代理问题比较难解决。

@Yidadaa
Copy link
Collaborator

Yidadaa commented Mar 25, 2023

请参考 #29 的提交临时解决,这个 pr 会在明天下午被合入,今晚先休息了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants