-
Notifications
You must be signed in to change notification settings - Fork 72
[BUG] NODE_PATH environment variable is ignored #42
Comments
NODE_PATH is a legacy and deprecated way to require things. It has nothing to do with running a binary, or with your PATH, so npx should have zero interaction with it. |
is there any other way to reference node_modules outside of working dir? PS in documentation it is not marked as deprecated, https://nodejs.org/api/modules.html |
It's deprecated in the sense that it's considered a bad practice to use it, and that while CJS has it, ESM never will - but it will never be removed from CJS either. I'm a bit confused; you want to run |
I have a scenario where i have separate src folder and build folder. can't create/change files in src folder. Rules of our build system. So node_modules are installed or unpacked from zip into build folder. Wanted to avoid the extra step of copying everything from src folder to build folder, instead wanted to just reference that node_modules folder. |
I think that step is necessary, otherwise anything that deals with modules might need configuration. |
What / Why
Error message: "not found: gulp"
When
Where
Windows, Node 12.16.1
Expected Behavior
gulp from NODE_PATH used
The text was updated successfully, but these errors were encountered: