-
Notifications
You must be signed in to change notification settings - Fork 93
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
Please consider build instructions for Windows #7
Comments
Hi. Thanks for checking it out on windows! You can see how the build on windows works here. It also uses Just, rush, all the same toolchain. We specify using the bash shell on windows (Git Bash). https://github.com/get-convex/convex-backend/blob/main/.github/workflows/precompile.yml I don't think it particularly "heavily favor a unix environment" given that those commands are directly used on windows in At least at a glance based on your error message, I would guess that you hadn't yet installed Would appreciate PRs with instructional improvements for Windows once you get it working if you are so inclined. |
Thanks @nipunn1313 I will investigate more. From a CMD prompt:
|
try from All of the scripts we run in our CI on windows are from git bash. |
Wish it worked, but not from git bash for me either. Why the |
can repro. Well that's bizarre CI uses
I see that you've gone down the same research rabbithole as me and found npm/cli#1290 Thanks for digging! |
@nipunn1313 The github pipeline is using npm v8.x and npm is now v9.x. I have not tested with v8.x, but suspect the prefix may work in v8. It appears to me from review of the source and some I am inclined to suggest a just recipe such as pre-rush-install:
cd scripts
npm install Or something like it and hopefully be able to use npm:latest and eliminate the somewhat obscure May also wish to check the npm version if v8 is really required, which I have not determined myself. |
I don't think the npm version is relevant. We probably don't need to pin to v8 I'll take a look |
@nipunn1313 thanks. In a git bash shell the next step of
Was a little surprised to see pnpm in there, my node install has |
It's gotta be node v18 (per the .nvmrc). I was able to get |
somehow there is this path Not sure why it's happening, you may have to debug a bit. I do not face this issue on my setup. |
The --prefix option does not work on windows with `npm install` See #7 GitOrigin-RevId: dcb4fbf45aa1d80b6595a804cc9cb9e1ebb13463
Hi, I am trying out
convex
; However, thejustfile
etc seem to heavily favor a unix environment. This project does provide Windows releases, so I was hoping to perform the same release build.I tried
cargo build -p local_backend --bin convex-local-backend
I get the following error;
Now that is debug, release same issue, Also the npm-packages is not installing on Windows either, performing
rush install
innpm-packages
. Thanks for considering and any help.The text was updated successfully, but these errors were encountered: