wbyoung / avn

Automatic Version Switching for Node
MIT License
1.14k stars 54 forks source link

could not activate node #73

Open rlue opened 6 years ago

rlue commented 6 years ago

I'm on a fresh install of Debian 9.4 (stretch).

# avn and anv-nvm are installed globally on the system node:
$ type avn
avn is /usr/bin/avn

# nvm contains installations of 9.11.1 (latest) and 8.11.1 (LTS):
$ nvm ls
        v8.11.1
->      v9.11.1
         system
default -> node (-> v9.11.1)
node -> stable (-> v9.11.1) (default)
stable -> 9.11 (-> v9.11.1) (default)
iojs -> N/A (default)
lts/* -> lts/carbon (-> v8.11.1)
lts/argon -> v4.9.1 (-> N/A)
lts/boron -> v6.14.1 (-> N/A)
lts/carbon -> v8.11.1

# and avn is failing with the following error:
$ cat foo/.node-version
8.11.1
$ cd foo
avn could not activate node 8.11.1

Details

The output of __avn_debug in the directory with a .node-version file is:

avn could not activate node 8.11.1
error: no plugin passed predicate

avn is loaded in my ~/.bashrc file with:

source "$HOME/.avn/bin/avn.sh" >/dev/null 2>&1

nvm specific

hourliert commented 6 years ago

Got the same error when I am using (system node), v10.2.1 (npm v5.6.0). If I create a alias with nvm, default -> 8.9.0 an re-run the avn setup. It works again.

Seems to be related to latest node version?