JetBrains: File Watchers
Using NVM
Section titled “Using NVM”The nvm not working in JetBrains IDE. Need a workaround.
Configuration
Section titled “Configuration”Put below variable into your .bashrc, .zshrc, or other shell profile.
export NVM_SYMLINK_CURRENT=trueEvery time when you run nvm use, script will create symlink to the current version of node in $NVM_DIR/current.
File Watcher
Section titled “File Watcher”Program
Section titled “Program”/home/user/.nvm/current/bin/npmArguments
Section titled “Arguments”run my-script $FilePath$In case of missing node
Section titled “In case of missing node”sudo ln -s /home/user/.nvm/current/bin/node /usr/local/bin/nodeNote
Environment variable COMPILE_PARTIAL=true is required to trigger File Watcher on SCSS partial files.
Sources:
