-
Notifications
You must be signed in to change notification settings - Fork 64
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
Compilation failed in win11 terminal #58
Comments
Thanks for the report @huangxiaobao-cxx & glad you got it working! https://www.npmjs.com/package/cross-env#usage Shouldn't need Also, I don't see the errant |
Found it, the semicolon is on the thanks |
@huangxiaobao-cxx please pull from main & close this issue if your problem is solved 🙏 |
I tested it using cmd, powershell, and bash terminals, but still couldn't run "pnpm dev" and it would prompt that RUST_BACKTRACE could not be recognized |
From the website https://www.npmjs.com/package/cross-env#usage, I found that the "cross-env" instruction sets the environment variables at the beginning, so I tried to modify the script and change the "build:dev" instruction from |
@huangxiaobao-cxx Please try this: |
Yes, that works successfully!. |
@MattFerraro you're on apple? Assume |
yes, |
I encountered 3 problems when compiling according to the readme document.
The first problem is that when executing the "pnpm dev" command, the console output is as follows:
Observing the above error, it seems that there is an extra ";" in the command, so I found the "dev" script in "packages/cadmium/package.json" and found that there is indeed an extra ";" in the command. After I deleted it, the error disappeared. But when executing "pnpm dev" again, the second problem appeared:
The command RUST_BACKTRACE terminal cannot recognize it. After consulting the information, I found that the command is to set the RUST environment variable, but setting the environment variable in the Windows terminal requires "set", so I changed RUST_BACKTRACE=1 to set RUST_BACKTRACE=1, and ran it again, and the error disappeared.
After modifying "packages/cadmium/package.json", part of its content is:
After running "pnpm dev" again, the third problem occurred: the console cannot output UTF-8 text, and the program crashes. Here, you only need to modify the console encoding and execute "chcp 65001". Run "pnpm dev" again and it will be executed successfully. The cadmium web interface is as follows:
The text was updated successfully, but these errors were encountered: