Bug 1370524

Summary: latest NPM not installable on Fedora 24.
Product: [Fedora] Fedora Reporter: Edward Rudd <urkle>
Component: npmAssignee: NodeJS Packaging SIG <nodejs-sig>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: jamielinux, nodejs-sig, tchollingsworth, tom, zsvetlik
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-08-26 14:55:14 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Edward Rudd 2016-08-26 14:40:35 UTC
Description of problem:
There are 2 vesions of NPM in fedora..  npm-1:2.15.9 and npm 3.5.4-5.  due to the nodejs conflicts setting of not allowing nodejs 1:2.15.9 one can not install npm 3.5.4.  Right now I have a very real issue where I need npm >= 3 for a project and due to this snafu on versioning I am unable to install it.

Version-Release number of selected component (if applicable):
npm-3.5.4-5 / nodejs-4.5.0-1

How reproducible:
all the time

Steps to Reproduce:
1. sudo dnf install nodejs
2. sudo dnf install npm-3.5.4

Actual results:
Error: package nodejs-1:4.5.0-1.fc24.x86_64 conflicts with npm < 1:2.15.9 provided by npm-3.5.4-5.fc24.noarch

Expected results:
the package to be installed

Additional info:
the npm package needs to be rebuild with an epock OR the conflict specification dropped from the nodejs package.

Comment 1 Tom Hughes 2016-08-26 14:55:14 UTC
This is deliberate - the separate npm package was meant to be retired but we forgot to do so and packages can't be retired after release.

The correct npm to use in F24 is the bundled 2.x version. Fedora 25 will include npm 3.x along with a newer version of Node.js.

Comment 2 Zuzana Svetlikova 2016-08-27 19:01:05 UTC
If you need npm@3 either do npm i npm -g or dnf install nodejs --releasever=25