npm not running on CentOS

50 views
Skip to first unread message

Reza Razavipour

unread,
Dec 30, 2013, 5:05:05 PM12/30/13
to nod...@googlegroups.com
I am trying to install node on `

    CentOS 2.6.31.11-an_centos6-v42 #3 SMP Thu Oct 31 12:17:24 PDT 2013 i686 i686 i386 GNU/Linux

I download the tar file from nodejs.org

    tar -xf node-v0.10.23.tar.gz
    cd node-v0.10.23
    ./configure
    make

I see node in node-v0.10.23/node pointing to out/Release/node. So node runs and all is well. npm is not working though. Not sure why. 

I only see npm below node-v0.10.23, only in

    ./deps/npm
    ./deps/npm/bin/npm
    ./tools/msvs/npm
    ./doc/blog/npm

so npm is not working so no npm install. Am I missing a step?

T.C. Hollingsworth

unread,
Dec 30, 2013, 5:38:58 PM12/30/13
to nod...@googlegroups.com

You forgot 'sudo make install'.  Then both node and npm will be in your $PATH.

If you try to execute npm directly without that, it won't be able to find node. If you really don't want to install it, you'll have to run it like './out/Release/node deps/npm/cli.js' or fix its shebang line for it to work.

Note that on CentOS you can just enable EPEL and 'sudo yum install npm' also. :-)

-T.C.

Reza Razavipour

unread,
Dec 30, 2013, 5:53:20 PM12/30/13
to nod...@googlegroups.com
I see that, thank you


Regards,
Reza


--
--
Job Board: http://jobs.nodejs.org/
Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nod...@googlegroups.com
To unsubscribe from this group, send email to
nodejs+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
 
---
You received this message because you are subscribed to a topic in the Google Groups "nodejs" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/nodejs/rcT2BOgzNR4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to nodejs+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reza Razavipour

unread,
Dec 30, 2013, 5:54:31 PM12/30/13
to nod...@googlegroups.com
I see that now. Thank you

Reza
Reply all
Reply to author
Forward
0 new messages