Bug 921540 - zypper install npm - nothing provides npm(semver)
Summary: zypper install npm - nothing provides npm(semver)
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Other (show other bugs)
Version: 201502*
Hardware: Other Other
: P2 - High : Major with 10 votes (vote)
Target Milestone: ---
Assignee: Marguerite Su
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-10 13:27 UTC by Diego Berge
Modified: 2015-08-10 09:56 UTC (History)
11 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
the missing dependency (21.04 KB, image/png)
2015-05-27 13:03 UTC, James Rome
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Berge 2015-03-10 13:27:53 UTC
# zypper install npm
Loading repository data...
Reading installed packages...
Resolving package dependencies...

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


# cat /etc/os-release 
NAME=openSUSE
VERSION="20150227 (Tumbleweed)"
VERSION_ID="20150227"
PRETTY_NAME="openSUSE 20150227 (Tumbleweed) (x86_64)"
ID=opensuse
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:opensuse:20150227"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://opensuse.org/"
ID_LIKE="suse"


This may be related to bug #904475.
Comment 1 Forgotten User I_JNBeXOR0 2015-05-18 14:44:35 UTC
I've this too:

zypper in npm
Loading repository data...
Reading installed packages...
Resolving package dependencies...

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

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

cat /etc/os-release
NAME=openSUSE
VERSION="13.1 (Bottle)"
VERSION_ID="13.1"
PRETTY_NAME="openSUSE 13.1 (Bottle) (x86_64)"
ID=opensuse
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:opensuse:13.1"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://opensuse.org/"
ID_LIKE="suse"

zypper lr
#  | Alias                     | Name                               | Enabled | Refresh
---+---------------------------+------------------------------------+---------+--------
 1 | devel:/languages:/nodejs  | devel:/languages:/nodejs           | Yes     | No     
 2 | openSUSE-13.1-1.10        | openSUSE-13.1-1.10                 | Yes     | No     
 3 | repo-debug                | openSUSE-13.1-Debug                | No      | Yes    
 4 | repo-debug-update         | openSUSE-13.1-Update-Debug         | No      | Yes    
 5 | repo-debug-update-non-oss | openSUSE-13.1-Update-Debug-Non-Oss | No      | Yes    
 6 | repo-non-oss              | openSUSE-13.1-Non-Oss              | Yes     | Yes    
 7 | repo-oss                  | openSUSE-13.1-Oss                  | Yes     | Yes    
 8 | repo-source               | openSUSE-13.1-Source               | No      | Yes    
 9 | repo-update               | openSUSE-13.1-Update               | Yes     | Yes    
10 | repo-update-non-oss       | openSUSE-13.1-Update-Non-Oss       | Yes     | Yes    
11 | security:/logging:/elma   | security:/logging:/elma            | Yes     | No
Comment 2 Forgotten User 2Fs33O-viV 2015-05-27 07:47:51 UTC
I also have this bug on Tumbleweed.
Comment 3 James Rome 2015-05-27 13:03:11 UTC
Created attachment 635630 [details]
the missing dependency

I get the same problem on 13.2 with a different dependency issue. Please fix.
Comment 4 Ruediger Oertel 2015-05-27 23:04:14 UTC
jgleissner can you have a look here ?

lars updated nodejs-semver to 4.2, but npm seems to require semver in < 4.1
can that requirement be updated ?
Comment 5 Forgotten User BM9N2RLsUV 2015-05-27 23:26:35 UTC
I think your priorities of your repos are wrong.

please give us the output of "zypper lr -d"
Comment 6 James Rome 2015-05-28 12:33:16 UTC
jarfx:~ # zypper lr -d
#  | Alias                              | Name                               | Enabled | Refresh | Priority | Type   | URI                                                                                | Service
---+------------------------------------+------------------------------------+---------+---------+----------+--------+------------------------------------------------------------------------------------+--------
 1 | KDE:Unstable:Extra                 | KDE:Unstable:Extra                 | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/KDE:/Unstable:/Extra/openSUSE_13.2/      |        
 2 | Packman Repository                 | Packman Repository                 | Yes     | Yes     |   99     | rpm-md | http://ftp.gwdg.de/pub/linux/packman/suse/openSUSE_13.2/                           |        
 3 | devel:tools:ide                    | devel:tools:ide                    | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/devel:/tools:/ide/openSUSE_13.2/         |        
 4 | download.opensuse.org-13.2-non-oss | Update Repository (Non-Oss)        | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/update/13.2-non-oss/                                  |        
 5 | download.opensuse.org-non-oss      | Main Repository (NON-OSS)          | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/13.2/repo/non-oss/                       |        
 6 | download.opensuse.org-oss          | Main Repository (OSS)              | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/13.2/repo/oss/                           |        
 7 | download.opensuse.org-oss_1        | Main Repository (Sources)          | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/source/distribution/13.2/repo/oss/                    |        
 8 | download.opensuse.org-update       | Main Update Repository             | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/update/13.2/                                          |        
 9 | google-chrome                      | google-chrome                      | Yes     | Yes     |   99     | rpm-md | http://dl.google.com/linux/chrome/rpm/stable/x86_64                                |        
10 | home:Herbster0815                  | home:Herbster0815                  | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/home:/Herbster0815/openSUSE_13.2/        |        
11 | home:ZaWertun:network              | home:ZaWertun:network              | No      | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/home:/ZaWertun:/network/openSUSE_13.2/   |        
12 | home:dstoecker                     | home:dstoecker                     | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/home:/dstoecker/openSUSE_13.2/           |        
13 | home:hennevogel:server             | home:hennevogel:server             | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/home:/hennevogel:/server/openSUSE_13.2/  |        
14 | home:marec2000                     | home:marec2000                     | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/home:/marec2000/openSUSE_13.2/           |        
15 | home:nixda:apache24-php            | home:nixda:apache24-php            | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/home:/nixda:/apache24-php/openSUSE_13.2/ |        
16 | libdvdcss repository               | libdvdcss repository               | Yes     | Yes     |   99     | rpm-md | http://opensuse-guide.org/repo/13.2/                                               |        
17 | openSUSE-13.2-0                    | openSUSE-13.2-0                    | Yes     | No      |   99     | yast2  | cd:///?devices=/dev/disk/by-id/ata-HL-DT-ST_DVDRAM_GH40F_73763A757573              |        
18 | openSUSE:13.2:Update               | openSUSE:13.2:Update               | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/ports/update/13.2/                                    |        
19 | openSUSE:Tools                     | openSUSE:Tools                     | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/openSUSE:/Tools/openSUSE_Factory/        |        
20 | repo-debug                         | openSUSE-13.2-Debug                | No      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/distribution/13.2/repo/oss/                     |        
21 | repo-debug-update                  | openSUSE-13.2-Update-Debug         | No      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/update/13.2/                                    |        
22 | repo-debug-update-non-oss          | openSUSE-13.2-Update-Debug-Non-Oss | No      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/update/13.2-non-oss/                            |
Comment 7 Forgotten User 2Fs33O-viV 2015-05-28 19:42:59 UTC
Here's my 'zypper lr -d' output:


# | Alias               | Name                        | Enabled | GPG Check | Refresh | Priority | Type   | URI                                                      | Service
--+---------------------+-----------------------------+---------+-----------+---------+----------+--------+----------------------------------------------------------+--------
1 | openSUSE-20150524-0 | openSUSE-20150524-0         | No      | ----      | Yes     |   99     | yast2  | hd:///?device=/dev/disk/by-id/scsi-1PHISON_USB3          |        
2 | repo-debug          | openSUSE-Tumbleweed-Debug   | No      | ----      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/tumbleweed/repo/oss/  |        
3 | repo-non-oss        | openSUSE-Tumbleweed-Non-Oss | Yes     | ( p) Yes  | Yes     |   99     | yast2  | http://download.opensuse.org/tumbleweed/repo/non-oss/    |        
4 | repo-oss            | openSUSE-Tumbleweed-Oss     | Yes     | (r ) Yes  | Yes     |   99     | yast2  | http://download.opensuse.org/tumbleweed/repo/oss/        |        
5 | repo-source         | openSUSE-Tumbleweed-Source  | No      | ----      | Yes     |   99     | NONE   | http://download.opensuse.org/source/tumbleweed/repo/oss/ |        
6 | repo-update         | openSUSE-Tumbleweed-Update  | Yes     | ( p) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/tumbleweed/          |
Comment 8 Ruediger Oertel 2015-05-28 23:53:14 UTC
you do not need a dozen repositories, it's in factory/tumbleweed itself.

npm requires nodejs(semver) < 4.1
and nodejs-semver, which provides ""nodejs(semver)",
was recently updated to version 4.2.

side issue is that npm is built from an outdated source while the current
source of npm lives in nodejs itself, but the npm there is not built
(disabled in configure for unkown reason).
Comment 9 Forgotten User BM9N2RLsUV 2015-05-29 09:24:02 UTC
(In reply to Ruediger Oertel from comment #8)
> you do not need a dozen repositories, it's in factory/tumbleweed itself.
> 
> npm requires nodejs(semver) < 4.1
> and nodejs-semver, which provides ""nodejs(semver)",
> was recently updated to version 4.2.
> 
> side issue is that npm is built from an outdated source while the current
> source of npm lives in nodejs itself, but the npm there is not built
> (disabled in configure for unkown reason).

thats what i said to him on IRC freenode/#opensuse-de

delete rotten repos, or use "zypper mr -p" and set the prio of the repo higher (less is higher) :)  ... even works with "yast2 sw_single"

99 = default

less (like 90) is higher, if you need that package from a other repo. like packman , so "zypper lr -d" and do zypper mr and change the prio

HTH
Siju
Comment 10 Diego Berge 2015-05-29 18:41:52 UTC
(In reply to Rainer Sigl from comment #5)
> I think your priorities of your repos are wrong.
> 
> please give us the output of "zypper lr -d"

$ zypper lr -e -
[Application_Geo]
name=Applications related to the earth (GIS, Mapping, geodesy, GPS, astronomy) (openSUSE_Tumbleweed)
enabled=1
autorefresh=1
baseurl=http://download.opensuse.org/repositories/Application:/Geo/openSUSE_Tumbleweed/
type=rpm-md
gpgcheck=1
gpgkey=http://download.opensuse.org/repositories/Application:/Geo/openSUSE_Tumbleweed/repodata/repomd.xml.key
keeppackages=0

[packman]
name=packman
enabled=1
autorefresh=1
baseurl=http://packman.inode.at/suse/openSUSE_Tumbleweed/
type=rpm-md
priority=100
keeppackages=0

[repo-debug]
name=repo-debug
enabled=1
autorefresh=1
baseurl=http://download.opensuse.org/tumbleweed/repo/debug
type=yast2
keeppackages=0

[repo-non-oss]
name=repo-non-oss
enabled=1
autorefresh=1
baseurl=http://download.opensuse.org/tumbleweed/repo/non-oss
type=yast2
keeppackages=0

[repo-oss]
name=repo-oss
enabled=1
autorefresh=1
baseurl=http://download.opensuse.org/tumbleweed/repo/oss
type=yast2
keeppackages=0

[repo-update]
name=repo-update
enabled=1
autorefresh=1
baseurl=http://download.opensuse.org/update/tumbleweed/
type=rpm-md
keeppackages=0
Comment 11 Forgotten User T1RpnZThHX 2015-06-02 03:26:23 UTC
I have encountered same problem in Tumbleweed 20150530.
Comment 12 Alexandre Pereira 2015-07-03 22:04:45 UTC
Will this ever gonna be fixed ?

Besides blaming the list with lots of repos, has anyone even tried to bootup a tumbleweed iso and just do a zypper in npm ?

Its bad, because npm in devel:/languages/nodejs is also broken ( missing glob ).

guess the only solution is to branch nodejs and enable npm build.
Comment 13 Forgotten User RK7-c2REEW 2015-07-12 09:53:24 UTC
For me it fails with another missing dependency:

"When trying to install npm I get the error: nothing provides npm (readable-stream) < 1.1 needed by npm 2.1.3-1.2."
Comment 14 Marguerite Su 2015-08-07 03:07:55 UTC
I think this has been fixed on latest TW. please test.
Comment 15 Forgotten User 2Fs33O-viV 2015-08-08 22:18:26 UTC
This now works for me.  The only problem I have now is that there are 2 versions of npm.  One package is simply called npm and it wants to install 169 packages, mostly nodejs stuff.  Then there is a package called nodejs-npm, and it wants to install only 2 packages.  When I run 'zypper if nodejs-npm', the description says "A package manager for Node.js, bundled in nodejs.".  So, which package do I install, npm or nodejs-npm ?!?  Thanks!
Comment 16 Marguerite Su 2015-08-10 09:56:40 UTC
Any will be okay. but nodejs-npm will be more and more reliable because it's bundled and don't need to consider too much about dependencies on the 169 packages.