Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
NPM global not in PATH...can't execute modules
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
dman777
Veteran
Veteran


Joined: 10 Jan 2007
Posts: 1004

PostPosted: Sun Mar 08, 2015 1:57 am    Post subject: NPM global not in PATH...can't execute modules Reply with quote

When I try to run global modules that I installed with npm....npm install foo -g..... I am not able to execute the module. I placed `/usr/lib64/node_modules/`, where the modules are, in PATH but still no success.

Any suggestions, please?

Code:
one@public-node ~/mez/mom $ echo $PATH
/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.7.3:/usr/lib64/node_modules/
 
public-node mom # lr /usr/lib64/node_modules/
total 44K
drwxr-xr-x  8 root   root 4.0K Mar  8 01:36 .
drwxr-xr-x 34 root   root  16K Mar  8 01:44 ..
drwxr-xr-x  7 nobody root 4.0K Jan  5 15:12 6to5
drwxr-xr-x  7 nobody root 4.0K Dec 24 21:37 bower
drwxr-xr-x  6 nobody root 4.0K Dec 24 21:11 gulp
drwxr-xr-x  3 nobody root 4.0K Mar  8 01:36 jshint-stylish
drwxr-xr-x  3 nobody root 4.0K Mar  8 01:35 n
drwxr-xr-x 10 nobody root 4.0K Mar  8 01:35 npm
Back to top
View user's profile Send private message
dman777
Veteran
Veteran


Joined: 10 Jan 2007
Posts: 1004

PostPosted: Sun Mar 08, 2015 6:54 pm    Post subject: Reply with quote

I fixed it.... I think a node upgrade broke this.


Code:
npm config set prefix /usr/


Needed to fix prefix with above statement
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum