File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -87,11 +87,8 @@ function runScript(options) {
8787 // Except we need to tell Node that these are paths, not native modules.
8888 filename = path . resolve ( filename || '.' ) ;
8989 mainModule . filename = filename = Module . _resolveFilename ( filename ) ;
90- mainModule . paths = Module . _nodeModulePaths ( path . dirname ( filename ) ) ;
91-
92- // if node is installed with NVM, NODE_PATH is not defined so we add it to our paths
93- if ( ! process . env . NODE_PATH ) mainModule . paths . push ( path . join ( __dirname , '../../..' ) ) ;
94-
90+ mainModule . paths = Module . _nodeModulePaths ( path . join ( __dirname , '../node_modules' ) ) ;
91+
9592 //process.execPath = filename;
9693 // Load the target file and evaluate it as the main module.
9794 // The input path should have been resolved to a file, so use its extension.
You can’t perform that action at this time.
0 commit comments