-
Notifications
You must be signed in to change notification settings - Fork 50
Closed
Description
I am on macOS Sierra, running node 7.6.0 (installed via nvm). I find that when I run which (this node module), I get the following error:
module.js:472
throw err;
^
Error: Cannot find module '../'
at Function.Module._resolveFilename (module.js:470:15)
at Function.Module._load (module.js:418:25)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/Users/carter/Dev/node_modules/.bin/which:2:13)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
If I update line 2 of node_modules/.bin/which to instead be var which = require("../which") then the script succeeds.
cwmoo740, edm00se, thecodejack, SVendittelli and kartolo
Metadata
Metadata
Assignees
Labels
No labels