Skip to content

Commit c4d6f70

Browse files
committed
fixed #291 - _node and _coffee broken
1 parent 120db9a commit c4d6f70

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lib/command.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)