-
Notifications
You must be signed in to change notification settings - Fork 2.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
Installer throws ERR_REQUIRE_ESM when making a clean install #3044
Comments
Just to confirm, I'm having the same issue as well. |
I tried to reinstall node, reboot machine, and install an earlier version of the installer, but with no luck. |
It's because the latest version of sort-package-json is using ESM |
Yeah, the latest package is causing the ESM error |
A very quick fix is to replace the version of e.g. for the error
the problem would be solved with cd /Users/zsty/.npm/_npx/82f938b29eb562d9/
npm i sort-package-json@1.55.0 |
Facing the same issue here. |
Yep, looks like this change from |
The most recent release to sort-package-json switched to ESM format. This is a breaking change which has not been released with an appropriate version, for example 2.x The intention of this change is to explicitly pin the package version and avoid the incompatible v1.56.0 being installed Closes remix-run#3044
The most recent release to sort-package-json switched to ESM format. This is a breaking change which has not been released with an appropriate version, for example 2.x The intention of this change is to explicitly pin the package version and avoid the incompatible v1.56.0 being installed Closes remix-run#3044
Easiest fix in the short term to is to override the version in your package.json, got my project back up and running.
|
I am unable to run |
Ah yes apologies, my comment is for existing projects you might be trying to work with. You could potentially clone one of the examples from https://github.com/remix-run/remix/tree/main/examples and then add the override as another way to get going. |
I reported the issue here keithamus/sort-package-json#258 |
thanks this works |
Thanks guys! Here instead of |
This should be fixed in v1.56.1 |
What version of Remix are you using?
latest
Steps to Reproduce
npx create-remix@latest --template remix-run/blues-stack NAME
Expected Behavior
Would install a project in a folder called NAME.
Actual Behavior
It throws an error
The text was updated successfully, but these errors were encountered: