Skip to content

Instantly share code, notes, and snippets.

@wall-e-08
Forked from lgg/solution.md
Created March 5, 2021 12:04
Show Gist options
  • Save wall-e-08/1c9028de1ce44ac502a01fe8d8889005 to your computer and use it in GitHub Desktop.
Save wall-e-08/1c9028de1ce44ac502a01fe8d8889005 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