Bug 22962 - npm - A package manager for Javascript
Summary: npm - A package manager for Javascript
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: New RPM package request (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Joseph Wang
QA Contact:
URL: https://github.com/npm/npm
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-28 05:10 CEST by Kristoffer Grundström
Modified: 2023-08-16 11:13 CEST (History)
5 users (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments
Output from trying to update the npm version (1017 bytes, text/plain)
2018-11-23 06:20 CET, Kristoffer Grundström
Details

Description Kristoffer Grundström 2018-04-28 05:10:47 CEST
Description of problem: It seems that we have a very outdated version of npm in Mageia 6 as I get this error when I try to run exactly as the README.md for the wire-desktop guide tells me to run, bit by bit.

Loading "Gruntfile.js" tasks...ERROR
>> SyntaxError: Unexpected token )
Warning: Task "linux-prod" not found. Use --force to continue.

Aborted due to warnings.

npm ERR! Linux 4.14.30-desktop-3.mga6
npm ERR! argv "/usr/bin/node" "/bin/npm" "run" "build:linux"
npm ERR! node v6.10.3
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! wire-desktop@ build:linux: `grunt linux-prod`
npm ERR! Exit status 3
npm ERR! 
npm ERR! Failed at the wire-desktop@ build:linux script 'grunt linux-prod'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the wire-desktop package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     grunt linux-prod
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs wire-desktop
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls wire-desktop
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/kristoffer/Desktop/wire-desktop/npm-debug.log

I'm looking to get npm added to Cauldron as a seperate package to nodejs.

Version-Release number of selected component (if applicable): 6.0.0

Anyone open to add it?
Kristoffer Grundström 2018-04-28 05:11:38 CEST

CC: (none) => hamnisdude
URL: (none) => https://github.com/npm/npm

Comment 1 Marja Van Waes 2018-04-28 14:02:42 CEST

(In reply to Kristoffer Grundström from comment #0)
> Description of problem: It seems that we have a very outdated version of npm
> in Mageia 6 as I get this error

<snip>
> 
> I'm looking to get npm added to Cauldron as a separate package to nodejs.

You mean with its own npm SRPM, so split out of the nodejs SRPM, right?
> 
> Version-Release number of selected component (if applicable): 6.0.0
> 
> Anyone open to add it?

Assigning to the nodejs maintainer and CC'ing some more nodejs-* maintainers for a decision about whether this package request can be accepted.

CC: (none) => mageia, marja11, thierry.vignaud
Source RPM: npm => (none)
Assignee: bugsquad => joequant

Comment 2 Kristoffer Grundström 2018-04-28 17:46:40 CEST
Yes, that's exactly what I meant.
Comment 3 Kristoffer Grundström 2018-11-23 06:20:23 CET
Created attachment 10495 [details]
Output from trying to update the npm version

https://npme.npmjs.com/docs/cli/updating.html tells you to do ' npm install npm -g ' to make sure that npm is the latest version installed, but when I do so as root in the terminal in MATE I get the attached output.
Comment 4 Kristoffer Grundström 2019-06-30 02:25:13 CEST
Ping! What's the verdict about this Is it a no-go?
Comment 5 Kristoffer Grundström 2021-06-02 03:08:33 CEST
Apparently it still does not want to upgrade with it's own suggested command:

npm install -g npm

It would be nice to have the instructions telling you to run that command using sudo if your user is added to sudoers group.

It works just fine when runned with sudo.
Comment 6 Kristoffer Grundström 2021-08-12 16:42:57 CEST
Can someone please push at least version 7.0.0 of npm so that I may finally build a tutanota-desktop rpm for Mageia?

When running npm install to build tutanota-desktop I get this:

npm ERR! code ENOTSUP
npm ERR! notsup Unsupported engine for tutanota@3.85.10: wanted: {"npm":">=7.0.0"} (current: {"node":"14.17.4","npm":"6.14.14"})
npm ERR! notsup Not compatible with your version of node/npm: tutanota@3.85.10
npm ERR! notsup Not compatible with your version of node/npm: tutanota@3.85.10
npm ERR! notsup Required: {"npm":">=7.0.0"}
npm ERR! notsup Actual:   {"npm":"6.14.14","node":"14.17.4"}
Comment 7 Kristoffer Grundström 2021-08-12 17:36:34 CEST
I see we have 7.19. in Cauldron. Can we push a Backport to Mageia 8?
Comment 8 christian barranco 2023-08-16 11:13:49 CEST
Hi. npm has been updated along the new nodejs version.

Resolution: (none) => FIXED
Status: NEW => RESOLVED
CC: (none) => chb0


Note You need to log in before you can comment on or make changes to this bug.