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
CONTRIBUTING.md missing YARN dependency #4179
Comments
fixes prisma#4179 by adding a check if yarn is available and if not uses npm pack instead
Nice catch! Thanks for reporting it 😃 |
@Jolg42 bdw. i haven't found any minimal requirements in the docs. To know what is the minimal node version that prisma supports. in tthe client and cli packages in package.json they mention >=10 node version. But when i installed 10.0.0 pnpm said it cannot be installed and requires minimum 10.13.0 to use it.. What is the official minimal node and npm supported version? should it be mentioned somewhere in the docs? or if i'm blind can u please link to the requirements?:) |
@muxahuk So in the docs it's indeed mentioned sometimes but not always that Node.js 10 minimum is required, this issue tracks the progress of making it clearer. I am not aware of any error mentioning version Recommended versions that are 100% confirmed to work are latest v12 or v14 (latest v10 works too but it is only in maintenance for a few more months so better to go with 12 minimum.) |
I think this is the error you encountered https://github.com/pnpm/pnpm/blob/86d21759da65326d24f77815a1af25be40e6013e/packages/pnpm/bin/pnpm.js#L5 So indeed to install the latest pnpm version you would need Node We will need to update the CONTRIBUTING.md with that version then. Thanks! |
yep, that's the error. After i done changes for the related MR i realized that fs.promises might not be supported in older versions of node and was trying to find minimal requirements. After installing node v10 - got error from pnpm and installed 10.13. So i changed the MR to use more common approach for node v10 - promisify.. Thanks for clarifying and adding references. |
Bug description
When i was copying repo to contribute i encountered that in order to build "client" package i had to install YARN globally, although in the CONTRIBUTING.md it is not mentioned.
Here's the usage place that was failing for me before i installed YARN:
prisma/src/packages/sdk/src/getPackedPackage.ts
Line 48 in 284891a
How to reproduce
Expected behavior
or
Environment & setup
The text was updated successfully, but these errors were encountered: