Skip to content

JetBrains: File Watchers

The nvm not working in JetBrains IDE. Need a workaround.

Put below variable into your .bashrc, .zshrc, or other shell profile.

Terminal window
export NVM_SYMLINK_CURRENT=true

Every time when you run nvm use, script will create symlink to the current version of node in $NVM_DIR/current.

Terminal window
/home/user/.nvm/current/bin/npm
run my-script $FilePath$
Terminal window
sudo ln -s /home/user/.nvm/current/bin/node /usr/local/bin/node

Note

Environment variable COMPILE_PARTIAL=true is required to trigger File Watcher on SCSS partial files.

Sources: