-
Notifications
You must be signed in to change notification settings - Fork 27.4k
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
[NEXT-832] Dev Server NPM error code ENOWORKSPACES #47121
Comments
I cannot reproduce it on my machine, even with
Which was added as part of #44234 to show the version of Next.js in the error overlay. The first release was 13.1.7-canary.18 though, so it's unclear how you can reproduce this in Could you be able to track down the exact The |
Thanks for looking into this! I should have been more clear - this error does NOT happen on 13.1.6. Every major release AFTER 13.1.6 does throw this error. I had a few other people try to reproduce and they got the same error, it’s strange it’s not happening for you. I will try to figure out exactly what canary version it started on. |
Yeah, I understood your message, the fuzzy part was how it was happening between Tracking down the exact canary version will help a lot though! 🙏 |
If anyone else is able to reproduce this, it could be helpful to know if you are using any sort of node package manager or if you have any sort of |
We run into the exact same issue and we are using n. |
I'm seeing the same error on next Running |
Also happening here running next |
Still seeing this on
|
Getting the same error while following the Turborepo tutorial:
|
I get the error with 3.1.6 also on first dev server start, seemingly it tries to patch lock file
|
I have continued using it with this error and everything seems to work fine - obviously would still be nice to have fixed. |
I also receive the same error when I spin up a dev server on a turborepo/next/npm project. Everything still builds and runs like @joepetrillo stated. Error: npm ERR! code ENOWORKSPACES
npm ERR! This command does not support workspaces.
npm ERR! A complete log of this run can be found in: ... Package versions: "next": "13.2.4",
"react": "18.2.0",
"react-dom": "18.2.0",
"turbo": "1.8.3", node/npm versions: node --version
v18.15.0
npm --version
9.5.0 |
Hey folks! I've just seen this same error with another developer I'm working with. We both have very similar developer environment setups, but they were seeing Following the comments above pointing at
Finally, in
My guess is that the other folks here unable to reproduce the error have either yarn or pnpm installed, whereas people seeing the error do not. Perhaps potential quick fix for usersRun |
Yep - fixed it for me!!! 🎉 |
Disabling telemetry fixes this for me! I can also confirm that I do not have yarn or pnpm installed. I guess I’m not sharing any data with Vercel for the time being 😆 |
this did the trick. thanks |
Ran into the same issue, disabling telemetry worked around the issue... On my pc. Other people in my team are still experiencing this issue. So, despite positive comments, it's not actually fixed yet. |
Thank you so much for this - super helpful! |
Thank you! As an alternative, if you don't want to use |
Thank you so much...! I have faced the same issue, that can resolved with npx next telemetry disable |
next telemetry is just phone home stats for next org not needed for your app. disabling does this: 1 - speeds up cold start and compile a bit 2 - fixes a non-breaking error you only see in monorepos vercel/next.js#47121
* Setup bun monorepo * Freeze wagmi/viem and tanstack versions * Add lib for shared ui and tools * Add --heavy-deps package * Disable next telemetry next telemetry is just phone home stats for next org not needed for your app. disabling does this: 1 - speeds up cold start and compile a bit 2 - fixes a non-breaking error you only see in monorepos vercel/next.js#47121
@joepetrillo, if your problem was already solved, you can close this issue to help to clean up the issues tab, |
Thank you @jacobpgn, your insight really sped up the investigation. 👍🏻 |
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. |
Verify canary release
Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 22.2.0: Fri Nov 11 02:03:51 PST 2022; root:xnu-8792.61.2~4/RELEASE_ARM64_T6000 Binaries: Node: 18.15.0 npm: 9.6.1 Yarn: N/A pnpm: N/A Relevant packages: next: 13.2.5-canary.3 eslint-config-next: 13.2.4 react: 18.2.0 react-dom: 18.2.0
Which area(s) of Next.js are affected? (leave empty if unsure)
Dev server and NPM
Link to the code that reproduces this issue
https://github.com/joepetrillo/workspace-issue
To Reproduce
Clone the repo then
npm install
thencd reproduction-app
thennpm run dev
Describe the Bug
I have determined that this error happens when a nextjs (versions after 13.1.6) dev server runs in an npm workspace.
npm config get registry
is getting called sometime during the dev server startup and is throwing an error since it is not supported in workspaces.error code ENOWORKSPACES
error This command does not support workspaces.
I initially thought this could be a turborepo issue, but it is not. More details are in the issue I initially opened (linked below).
vercel/turborepo#4183
And here is a sample error log:
Expected Behavior
No error
Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
NEXT-832
The text was updated successfully, but these errors were encountered: