0

I need to install some global packages by NPM on centOS 6.5

more specifically i need to install forever , which is a command line tool

sudo npm install -g forever

but no way i am getting forever to run from comand line

forever

i think there is some issue in the default location of my npm installations since i tried with few other packages and the same command line binary packages are not getting installed or may be getting installed in wrong location

can you please help me figure this out

Ali
  • 595
  • 4
  • 13
  • 42
  • `npm ls -g --depth=0` will confirm the packages are installed and the location. start there. – Matthew Bakaitis Jun 27 '14 at 02:46
  • 1
    Please use this link to correct your issue: http://stackoverflow.com/questions/12594541/npm-global-install-cannot-find-module?rq=1 – Avinash Dubey Jun 27 '14 at 06:15
  • @AvinashDubey thanks but i have seen that post before sending my question it didn't help since my packages gets installed in /usr/lib/node_modules/ which i think is correct – Ali Jun 27 '14 at 14:27
  • @MattBakaitis i can see forever is installed but still it is not getting run from shell when i try to – Ali Jun 27 '14 at 14:28
  • 1
    ...is /usr/lib/node_modules/ in your path? I think that's where @AvinashDubey was going with the link... If it isn't, that's likely the issue. – Matthew Bakaitis Jun 27 '14 at 14:42
  • @MattBakaitis and AvinashDubey thank you very much with your comments i was able to solve my issue – Ali Jul 02 '14 at 20:43
  • @Ali please answer your own question since you solved the issue. – Gezim Sep 27 '15 at 19:42

0 Answers0