Closed domdomegg closed 3 months ago
I cannot reproduce this, have you maybe forgotten to run pnpm install
(step 5)?
turbo
is correctly added as a dependency and should have been installed:
https://github.com/vercel/next.js/blob/2b497413087c56dedb3e04f77ea0deebb5d12d0b/package.json#L224
Thanks. I did run pnpm install, but I've tried again and get the same result:
After looking around some more, I think this issue is stemming from using Node v20 with an older version of PNPM
Related PNPM bug: https://github.com/pnpm/pnpm/issues/6424
I think to fix this we could either:
It looks like someone tried to fix this in https://github.com/vercel/next.js/pull/51406, but that was reverted by https://github.com/vercel/next.js/pull/51539
@ijjk are you able to expand on the lockfile issues you mentioned there? Unfortunately I don't have lots of experience using pnpm so would appreciate any advice on what next steps might look like :)
I've opened https://github.com/vercel/next.js/pull/52955 as a partial solution that mitigates this somewhat by providing an informative error message to users when they're using Node 20. But I think this ticket should stay open until we fix Node 20 contributor support in general (e.g. figure out how to upgrade PNPM, like #51406, but without the issues mentioned in #51539).
I had same problem. I tried install this package sudo apt-get install build-essential
on my machine, then pnpm install
have done without error. Try it.
I'm going to close this issue given I think the bug I originally reported was fixed by https://github.com/vercel/next.js/pull/50923
However @jrafael29 if you're having issues it might be worth creating a new issue and providing more detailed logs as to what errors you encounter.
This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
What is the improvement or update you wish to see?
Following the guide https://github.com/vercel/next.js/blob/canary/contributing/core/developing.md results in getting stuck at the
pnpm dev
step with the error:Information about my machine:
Node: v20.4.0 (via brew) npm: 9.7.2 corepack: 0.19.0 (via npm) pnpm: 8.6.9 (via corepack) Platform: darwin Arch: arm64 Version: Darwin Kernel Version 22.3.0: Mon Jan 30 20:39:46 PST 2023; root:xnu-8792.81.3~2/RELEASE_ARM64_T6020 Commit sha: 8e3cd83dc89207dfbdbc25c63efc7e389db06994
Is there any context that might help us understand?
Hit this when trying to contribute #52939
Does the docs page already exist? Please link to it.
https://github.com/vercel/next.js/blob/canary/contributing/core/developing.md