If you get error:
run npm command gives error "/usr/bin/env: node: No such file or directory
in file watcher
solution:
- edit
.bashrc
and addexport NVM_SYMLINK_CURRENT=true
before NVM-stuff - then
nvm use default
- Then add
$HOME/.nvm/current/bin
to your PATH in.profile
:
# NVM
if [ -d "$HOME/.nvm/current/bin" ] ; then
PATH="$HOME/.nvm/current/bin:$PATH"
fi
- reboot
via JetBrains forum