installation of nodejs doesn't include npm.

155 views
Skip to first unread message

Matthew Ngaha

unread,
Apr 16, 2015, 9:16:13 AM4/16/15
to nod...@googlegroups.com
my installation of nodejs doesn't include npm. I tried to install npm separately but get an error message.

Problem: nothing provides npm(semver) < 4.1 needed by npm-2.1.3-9.1.noarch
 Solution 1: do not install npm-2.1.3-9.1.noarch
 Solution 2: break npm-2.1.3-9.1.noarch by ignoring some of its dependencies

Choose from above solutions by number or cancel [1/2/c] (c): c

I'm on opensuse 13.1. Any ideas what I can do?

Jorge Eduardo Ibarra Esquer

unread,
May 15, 2015, 9:51:16 AM5/15/15
to nod...@googlegroups.com
I was searching for an answer to that same problem and found your post. After looking for a while, I decided to install the only available version of npm(server) I could find (4.2.something) using 

zypper install nodejs-semver

After that, I chose to ignore dependencies while installing npm with zypper (solution 2). I used npm to install a module and had no problems at all.
The only difference is that I am on OpenSUSE 13.2.

Best regards

Aria Stewart

unread,
May 15, 2015, 9:57:41 AM5/15/15
to nod...@googlegroups.com, chig...@gmail.com

You probably want to consider nodesource's RPMs; they're a lot less RPM-distro-split-everything-into-tiny-parts style.  The problem with the OpenSUSE style is that node modules aren't installed globally like that, so they're really trying to force node style dependencies to work like the ones from other languages where everything is a peerDependency.

Aria
Reply all
Reply to author
Forward
0 new messages