Skip to content

Instantly share code, notes, and snippets.

@quangson91
Forked from lgg/solution.md
Created February 3, 2021 08:51
Show Gist options
  • Save quangson91/aeb1c73b45f7eb6f15ed2fa841f650b8 to your computer and use it in GitHub Desktop.
Save quangson91/aeb1c73b45f7eb6f15ed2fa841f650b8 to your computer and use it in GitHub Desktop.
JetBrains intellij idea + NVM + nodejs + WebStorm

NVM + WebStorm

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 add export 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment