Closed DylanVann closed 3 years ago
Do you know if this still works on Windows? That’s why we had to do the npx stuff iirc.
I believe it should because it's making use of cross-env
. NODE_OPTIONS
should work on Windows.
After trying to get a Windows dev environment working in VirtualBox for over 2 hours I'm calling it quits, maybe someone else can test.
Not sure what it does exactly, but the fact that "Windows Node CI" is passing seems to be a good sign.
Edit: Looking at what "Windows Node CI" is doing, I'm 99% sure it would not be passing if NODE_OPTIONS
was not working correctly.
Awesome; thanks for checking @DylanVann. We seem to be having some CI issue but they look transient, so I'll trigger a rebuild and see if we can get them to pass.
That did the trick, thanks!
Awesome; thanks! :raised_hands:
Description
On cloning this repo and following instructions I encountered errors saying
-n
is no longer supported innpx
.It seems that my version of
npx
is too old to work correctly. I normally usefnm
to manage Node versions and don't usenpm
ornpx
too often so I hadn't noticed this.More detail: I've installed Node
15.5.1
usingfnm
, this installsnpm@7.3.0
andnpx@7.3.0
, I searched online but I don't see any matrix mappingnpm version -> npx version
anywhere, maybefnm
is doing something incorrect by using the same version asnpm
.This could be mitigated for other users by using
NODE_OPTIONS
instead ofnpx
.Performance impact
Possibly slightly better perf 🤷♂️ , most of these commands were already using
cross-env
.Security impact
None.
Checklist
yarn lint:fix
passes.yarn test
passes.RELEASE_NOTES.md
file (if one exists).