-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent launching node.js script file in working directory.
The PATHEXT environment variable on Windows often includes .JS, which means running "node" can try to execute a file named "node.js" in the current working directory. As npm-installed executable scripts are often executed in directories containing .js files, this is not unlikely. This change works around it by locally stripping the .JS extension from the PATHEXT environment variable.
- Loading branch information
Showing
2 changed files
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters