← Back to issue list

In the nodejs plugin, there is no way to specify the npm version required

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1632553
Type
issue
State
closed
Author
~elopio
Labels
plugin
Created
Updated
Closed

Current evaluation

Resolved by introducing a dedicated npm plugin that allows specifying npm versions independently, addressing the nodejs plugin limitation.

Suggested action:

No scores available.

Issue body

From the dcos-ui project (https://github.com/dcos/dcos-ui): "Node 4.x and NPM 3.x (and above) are required." That is not possible with the nodejs plugin. when I use node v4.4.7, npm v2.15.8 is installed. I can use a more recent npm version by using a more recent node engine, but then the server won't start: ERROR: Node version v6.7.x does not match required version v4.4.x npm ERR! Linux 4.8.0-19-generic npm ERR! argv "/snap/dcos-ui/x2/bin/node" "/snap/dcos-ui/x2/bin/npm" "run" "check-env" npm ERR! node v6.7.0 npm ERR! npm v3.10.3

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Resolved by introducing a dedicated npm plugin that allows specifying npm versions independently, addressing the nodejs plugin limitation.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 20
Confidence: 85
Support Request: 10
close stale Feature request to specify npm version independently in the nodejs plugin. Issue is nearly 10 years old with zero maintainer interaction or comments.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 20
Confidence: 90
Support Request: 15
close stale Feature request to independently specify npm version in the nodejs plugin. Issue is over 9 years old with no maintainer response or activity.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 25
Confidence: 85
Support Request: 15
close stale Snapcraft nodejs plugin lacks independent npm version specification, causing conflicts when apps require specific Node and npm versions. Unaddressed for nearly a decade.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 25
Confidence: 90
Support Request: 10
close stale nodejs plugin lacks npm version specification, forcing incompatible npm installs when constraining Node versions. Open, unassigned, unaddressed for over nine years. Requires triage or implementation.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1586104 nodejs plugin: Unable to use node version other than 4.2.2 snapcraft (launchpad) closed Fixed by implementing a configurable node-engine parameter in the nodejs plugin, replacing the hard-coded 4.2.2 version. The change maintains backward compatibility and was verified before closing.
70%