This repository was archived by the owner on Dec 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 38
This repository was archived by the owner on Dec 6, 2023. It is now read-only.
Error: Cannot find module 'commander' #76
Copy link
Copy link
Open
Description
When changing into a directory with a .node-version file I get the following error.
11:26:36 ▶ cd kibana
module.js:549
throw err;
^
Error: Cannot find module 'commander'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/Users/engarcia/.avn/bin/_avn:5:15)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
I've installed avn via yarn which worked fine previously. I've tried blowing out avn with rm -r ~/.avn and reinstalling as well with yarn global add avn avn-nvm to no avail.
Details
- avn
avn --version- 0.2.3 - node
node --version- 8.11.1 - nvm
nvm --version- 0.33.8 - n
n --version- na - zsh
zsh --version- na - bash
bash --version- 4.4.19(1)-release
The output of __avn_debug in the directory with a .node-version file is:
11:24:48 ▶ __avn_debug
module.js:549
throw err;
^
Error: Cannot find module 'commander'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/Users/engarcia/.avn/bin/_avn:5:15)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)avn is loaded in my ~/.bashrc file with:
[[ -s "$HOME/.avn/bin/avn.sh" ]] && source "$HOME/.avn/bin/avn.sh" # load avnnvm specific
- As an
nvmuser I am confirming that I did not install with Homebrew
jorroll and oshercc
Metadata
Metadata
Assignees
Labels
No labels