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

Bug #1632553 reported by Leo Arias
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
New
Undecided
Unassigned

Bug Description

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

Tags: plugin
Leo Arias (elopio)
tags: added: plugin
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.