jorgebucaran / nvm.fish

The Node.js version manager you'll adore, crafted just for Fish
https://git.io/nvm.fish
MIT License
2.13k stars 71 forks source link

Invalid set default node for new shell #160

Closed anggapw closed 3 years ago

anggapw commented 3 years ago

Hi,

I have installed the node via nvm.fish and configured it so that it can be used as the default node

Screenshot from 2021-05-21 11-19-42

but when I open a new terminal, an error appears as shown below

Screenshot from 2021-05-21 11-20-24

do I have to reboot first? or I have to install nodejs separately on the system? i'm using Fedora 34

jorgebucaran commented 3 years ago

You need to install it before you can use it. So, nvm install lts, then nvm use lts.

anggapw commented 3 years ago

You need to install it before you can use it. So, nvm install lts, then nvm use lts.

I've done it, but still can't

Screenshot from 2021-05-21 13-13-54

nvm: Node version not installed or invalid: "lts

jorgebucaran commented 3 years ago

Sorry, I can't reproduce this, and you are not giving me enough information to work with.

Try debugging it here yourself: https://github.com/jorgebucaran/nvm.fish/blob/e944905cdfea9c2261ea0c35043fb4848915c528/functions/nvm.fish#L112-L119