Bugzilla – Bug 921540
zypper install npm - nothing provides npm(semver)
Last modified: 2015-08-10 09:56:40 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.
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
I also have this bug on Tumbleweed.
Created attachment 635630 [details] the missing dependency I get the same problem on 13.2 with a different dependency issue. Please fix.
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 ?
I think your priorities of your repos are wrong. please give us the output of "zypper lr -d"
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/ |
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/ |
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).
(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
(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
I have encountered same problem in Tumbleweed 20150530.
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.
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."
I think this has been fixed on latest TW. please test.
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!
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.