-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
Crash when using NODE_OPTIONS=--experimental-specifier-resolution=node with some .bin executables #35518
Comments
I can't reproduce it on Linux. |
I have the same issue but started happening on 14.13.1 and not 14.13.0 which was working fine. // Edit |
I think this error is happening due changes with esm-loader and is not related to NODE_OPTIONS. @daveisfera Can I ask to confirm if this really began happening on 14.13.0? If you are right then I must create another issue. |
I just tested with |
I can reproduce now with:
@nodejs/modules |
Also seeing this when running mocha via node v14.13.1, Mac OSX 10.15.1. Running the same command under my Ubuntu VM works fine. |
It's not a bug but planing feature. See https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V13.md |
the recent version node 18 lts, 18.17.0 seems have a related error, seen using the package here https://github.com/iambumblehead/esmock/tree/master/tests/tests-source-map the error does not happen when node 18.16.x is used, only when 18.17.x a link to a failed pipeline that shows the error is here https://github.com/iambumblehead/esmock/actions/runs/5688083279/job/15417439319?pr=217 and a screenshot of the error seen from a win32 virtual machine is seen here any suggestions for resolving the issue would be very welcome |
Node 14 is EOL and this flag was removed years ago. Closing. |
What steps will reproduce the bug?
NODE_OPTIONS=--experimental-specifier-resolution=node node_modules/.bin/semver --version
How often does it reproduce? Is there a required condition?
100%
What is the expected behavior?
Runs just like when
NODE_OPTIONS
isn't setWhat do you see instead?
This error:
Additional information
Also happens with
he
,mocha
,node-which
, andtsc
The text was updated successfully, but these errors were encountered: