avn
avn copied to clipboard
avn could not activate node
Details
-
avn
avn --version
0.2.3 -
node
node --version
v6.14.2 -
nvm
nvm --version
0.33.11 -
bash
bash --version
GNU bash, version 4.2.46(2)-release (x86_64-redhat-linux-gnu)
The output of __avn_debug
in the directory with a .node-version
file is:
__avn_debug avn could not activate node 6.14.4 error: no plugin passed predicate avn-nvm: Invalid Version: v6.14.4 * avn-n: no version matching 6.14.4
avn
is loaded in my ~/.{bash|zsh}{_profile|rc}
file with:
.bash_profile
Get the aliases and functions
if [ -f ~/.bashrc ]; then . ~/.bashrc fi
User specific environment and startup programs
PATH=$PATH:$HOME/.local/bin:$HOME/bin:$HOME/node/node-v8.11.4-linux-x86/bin
PATH=$PATH:/apps/ibm/node/bin:/apps/ibm/node_modules/bin PATH=/apps/ibm/bin:$PATH export PATH
export NPM_CONFIG_PREFIX=/apps/ibm/node_modules
export LOG_DIR=/logs/apic-member [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" --no-use # This loads nvm [ -s "$NVM_DIR/bash_completion" ] && . "$NVM_DIR/bash_completion" # This loads nvm bash_completion [[ -s "$HOME/.avn/bin/avn.sh" ]] && source "$HOME/.avn/bin/avn.sh" # load avn
nvm specific
- [x] As an
nvm
user I am confirming that I did not install with Homebrew
@hanudesai it looks like you may just not have that version installed.
I have the exact same issue. Using n
, node version 0.12.18
is install but avn responds with avn could not activate node 0.12.18
using node 8.1.0
. Same happens on 10.0.0
and on 14.5.0
it cant even find the correct module Fatal Error: Cannot find module '/Users/verpixelt/.avn/plugins/avn-nvm'
Same issue here.
"avn could not activate node v12.22.12" $ node -v v10.12.0 $ avn --version 0.2.4 $ __avn_debug avn could not activate node v12.22.12 error: no plugin passed predicate $ nvm ls v8.1.3 v8.11.1 -> v10.12.0 v12.22.12 default -> 10.12 (-> v10.12.0) node -> stable (-> v12.22.12) (default) stable -> 12.22 (-> v12.22.12) (default) $ bash --version GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin20)
Sorry for posting. Solved it. I tried to be smart and didn't install all three packages because I don't use n. Now it works.