简体   繁体   中英

Global node modules not recognized

I am reading around SO and I still can't fix it. I installed Grunt-cli and bower global and when I run it I get

bash: grunt: command not found

So I didn't have a . bash_profile and I added it. And I put this inside:

export PATH=/.node/lib/node_modules:$PATH

But still not working. If you need the prefix is:

prefix = "/root/.node"

I am using debian.

Did you remember to reload your bash profile after creating it? If not, just open a terminal and type source ~/.bash_profile

This will exit the shell and log you back in so that it can recognize changes made to it.

I solved the problem with brew install.

http://blog.teamtreehouse.com/install-node-js-npm-linux

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM