In Ubuntu, if I install a module, for example:
npm install nodemon -g
I have a team nodemonin$path
nodemon
$path
Mac OSX is nodemonnot in $path...
Any clues?
UPDATE: there is nothing /usr/local/bin, I also tried the same result withnpm install nodemon -g
/usr/local/bin
Try installing it globally:
sudo npm install nodemon -g
If this does not work, add /usr/local/binto yours $PATH.
$PATH
Mac. , ( sudo), /usr/local/share/npm/bin . bash, . vim ~/.bash_profile, :
/usr/local/share/npm/bin
export PATH=${PATH}:/usr/local/share/npm/bin
, .
, $PATH,/usr/local/bin , , npm Mac ( , Mac, Linux).
node , ~/.config/fish/config.fish
~/.config/fish/config.fish
set PATH /usr/local/Cellar/node/6.6.0/bin/ $PATH
? . nvm (node )? , -
Users/maxl/.nvm/v0.10.4/bin
echo $PATH
. , , , RVM gemset. node, , npm install -g grunt-contrib-compass.
npm install -g grunt-contrib-compass
which compass, , ! - ??? , NPM RVM ( ) gemset! -g .
which compass
rvm --force gemset delete appname . , , . , .
rvm --force gemset delete appname
, nvm, :
nvm install stable nvm use stable nvm alias default stable
, npm config get prefix .
npm config get prefix