You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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:If I update line 2 of
node_modules/.bin/which
to instead bevar which = require("../which")
then the script succeeds.The text was updated successfully, but these errors were encountered: