Nodejs installed withouth npm?

58 views
Skip to first unread message

Klaupadiusz Zawięda

unread,
Jan 15, 2015, 9:43:34 AM1/15/15
to nod...@googlegroups.com
Hi,

I've just installed nodejs on Debian 7 - by apt-get install nodejs.

Nodejs seems to be working fine, but when I enter npm I get "command not found".

"which nodejs" points to "usr/bin" and there it is - nodejs, but there is no npm file, what went wrong?


Aria Stewart

unread,
Jan 15, 2015, 10:21:08 AM1/15/15
to nod...@googlegroups.com
Consider using the nodesource repo, since it's up to date and includes npm, not broken into a ton of packages and out of date like debian.

Aria

Klaupadiusz Zawięda

unread,
Jan 15, 2015, 10:31:13 AM1/15/15
to nod...@googlegroups.com
I'm not particularly at using ssh and unix-like systems generally, can you please tell me how to do that?

Aria Stewart

unread,
Jan 15, 2015, 10:48:55 AM1/15/15
to nod...@googlegroups.com

On Jan 15, 2015, at 10:31 AM, Klaupadiusz Zawięda <klaup...@gmail.com> wrote:

I'm not particularly at using ssh and unix-like systems generally, can you please tell me how to do that?

The oneliner:


You can do what that does manually if you want to verify rather than trusting the script, but that's the gist of it -- adds a file in /etc/yum* stuff, more or less.

Aria

Klaupadiusz Zawięda

unread,
Jan 16, 2015, 4:06:50 AM1/16/15
to nod...@googlegroups.com
Thanks! I'll try it.

Marcos Marado

unread,
Jan 16, 2015, 7:26:22 AM1/16/15
to nod...@googlegroups.com
Hi there,

Nothing went wrong, Debian nodejs packs only nodejs, not the surrounding bits.
To install npm you need only to:
 # apt-get install npm

--
Marado

XiongJia Le

unread,
Jan 16, 2015, 10:48:01 AM1/16/15
to nod...@googlegroups.com
You can directly download the binary executable file from http://nodejs.org/dist/ .
BTW:
You also can directly install NPM from http://nodejs.org/dist/npm/



--
Job board: http://jobs.nodejs.org/
New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 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 unsubscribe from this group and stop receiving emails from it, send an email to nodejs+un...@googlegroups.com.
To post to this group, send email to nod...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/748e9d9b-a2a7-40ad-b10a-481cf93a966b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages