nvm.fish
nvm.fish copied to clipboard
Opening new tabs/windows in tmux does not load node
Without tmux node loads properly when opening new panes/windows it's not loaded and when I try to load it with nvm use lts this happens:
[I] me@me-MacBook-Pro-2 ~/Projects/dotfiles (main)
❯ nvm list
v22.14.0 lts/jod
[I] me@me-MacBook-Pro-2 ~/Projects/dotfiles (main)
❯ nvm use lts
fish: Unknown command: npm
~/.config/fish/functions/nvm.fish (line 1):
command npm --version
^~^
in command substitution
called on line 229 of file ~/.config/fish/functions/nvm.fish
in function '_nvm_node_info'
called on line 1 of file ~/.config/fish/functions/nvm.fish
in command substitution
called on line 156 of file ~/.config/fish/functions/nvm.fish
in function 'nvm' with arguments 'use lts'
~/.config/fish/functions/nvm.fish (line 229): Unknown command
test -f $npm_path/package.json || set --local npm_version_default (command npm --version)
^~~~~~~~~~~~~~~~~~~~~~^
in function '_nvm_node_info'
called on line 1 of file ~/.config/fish/functions/nvm.fish
in command substitution
called on line 156 of file ~/.config/fish/functions/nvm.fish
in function 'nvm' with arguments 'use lts'
fish: Unknown command: node
~/.config/fish/functions/nvm.fish (line 230):
command node --eval "
^~~^
in function '_nvm_node_info'
called on line 1 of file ~/.config/fish/functions/nvm.fish
in command substitution
called on line 156 of file ~/.config/fish/functions/nvm.fish
in function 'nvm' with arguments 'use lts'
Now using Node (npm )