It sounds like your npm
installation is configured to use /home/brunoluiz/npm
as prefix
, meaning that it will place symlinks to the CLIs that come with globally installed packages in {prefix}/bin
.
In a default installation, prefix
is either /usr
or /usr/local
on Unix platforms (%APPDATA%/npm
on Windows).
If {prefix}/bin
is not in your $PATH
, you won't be able to execute such CLIs just by name.
To see the current prefix
value in effect, run:
npm get prefix
Your options are:
npm set prefix /usr # Ubuntu; CLI symlinks are placed in /usr/bin
npm set prefix /usr/local # OSX; CLIs symlinks are placed in /usr/local/bin
Note, however, that you'd then have to reinstall your global packages for the symlinks to be created in the new {prefix}in
location.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…