← Back to issue list

nodejs plugin: Unable to use node version other than 4.2.2

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1586104
Type
issue
State
closed
Author
~kyrofa
Labels
verification-done
Created
Updated
Closed

Current evaluation

⚠️ This summary may be outdated — the issue content or evaluation prompts have changed since this evaluation was made.

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.

Suggested action:

No scores available.

Issue body

[Impact] * The nodejs plugin is hard-coded to use version 4.2.2. This should be configurable via a `node-engine` config parameter. [Test Case] 1. Run `snapcraft` on the shout example, notice by default it uses the node LTS (v4.4.4). 2. Run `snapcraft clean` to reset the shout example. 3. Change the shout configuration to specify `node-engine: 4.2.2`. 4. Run `snapcraft` on the shout example again, noticing that it's now using node v4.2.2. [Regression Potential] * Very low. This is a new feature that maintains backward compatibility with the previous plugin.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b 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.
qwen/qwen3.6-35b-a3b Fixed by adding a configurable node-engine parameter to the nodejs plugin, replacing the hard-coded v4.2.2 default. The change was verified and the issue closed.
qwen3.6-35b-a3b-mtp-q6 Implemented configurable node-engine parameter in the nodejs plugin, replacing the hard-coded 4.2.2 version. Verified and closed.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1228 nodejs plugin: switch to the newer LTS. snapcraft merged Merged update switching the Node.js plugin from version 4.4.4 to LTS 6.10.1. Approved by one reviewer, passed CI, and applied with a single line change.
71%
#1632553 In the nodejs plugin, there is no way to specify the npm version required snapcraft (launchpad) closed Resolved by introducing a dedicated npm plugin that allows specifying npm versions independently, addressing the nodejs plugin limitation.
70%