randy3k / Terminus

Bring a real terminal to Sublime Text
https://packagecontrol.io/packages/Terminus
MIT License
1.39k stars 81 forks source link

Terminus cannot run npm commands #194

Closed ghost closed 4 years ago

ghost commented 4 years ago

i've installed some packages globally with npm, all these packages are in my ~/.node-global directory. The thing is this, i've added an export PATH="$PATH:$HOME/.npm-global/bin" to the .bashrc config file to run my commands from console.

Right now when i try to run node-sass from terminus over sublime-text3 it says: bash: node-sass: command not found like it isn't reading the .bashrc

Solved. you only need to add the same export path to ~/.profile file. Hope it be helpful

randy3k commented 4 years ago

What OS are you using?

ghost commented 4 years ago

Linux Solus Budgie 4.1

randy3k commented 4 years ago

Perhaps it’s os dependent issue. Afaik, Ubuntu will happily read .bashrc