View previous topic :: View next topic |
Author |
Message |
dman777 Veteran
Joined: 10 Jan 2007 Posts: 1004
|
Posted: Sun Mar 08, 2015 1:57 am Post subject: NPM global not in PATH...can't execute modules |
|
|
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 |
|
|
dman777 Veteran
Joined: 10 Jan 2007 Posts: 1004
|
Posted: Sun Mar 08, 2015 6:54 pm Post subject: |
|
|
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 |
|
|
|