-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[Windows] prisma2 init
fails with Error: Can't find Python executable "python", you can set the PYTHON env variable.
#550
Comments
An easy fix for this would be to use a pure js implementation of brcypt(https://www.npmjs.com/package/bcryptjs) instead of the implementation that uses C++ bindings(https://www.npmjs.com/package/bcrypt) We need to change the following dependency: https://github.com/prisma/prisma-examples/blob/ec162bc4d43695147f43234ebe2f16fbba61761f/typescript/graphql-auth/package.json#L10 |
Installing Python 2.x or Python 3.x manually (e.g. |
@janpio If we still want to use the native C++ implementation, you should install nodejs build tools for windows
|
Will try that, just to make sure no other problems are hiding behind the current problem. |
Running (Unfortunately I hit #531 then, but this is further in the process 🚀 ) |
Prepared a PR with the fixes suggested by @pantharshit00 🤞 Need someone to validate it though, I couldn't reproduce this on my windows instance (cc @janpio 👀) |
Please try it out with the latest alpha ( If the problem persists, please open a new issue and tag me there :) |
prisma2 init
forStarter Kit > TypeScript > GraphQL API (+ Auth) > SQLite
fails with:Versions:
Building these
node-pre-gyp
and similar dependencies on Windows via Python is always a mess unfortunately :(The text was updated successfully, but these errors were encountered: