You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Gardener appears broken on Node v6.2.0. NPM's call-level interface has changed – specifically, npm.commands.install(dir, url, fn) has changed to npm.commands.install(dir, args, fn), where args can be [ url ]. Audit all uses of the npm module for compatibility with the latest version, and fix API incompatibilities. Either (a) branch a new major version of Gardener for Node v6.x, or (b) add a runtime version check so that the same version of Gardener works on all versions of Node and NPM.
$ node -v
v6.2.0
$ cat /srv/storage/gardener/logs/startup.log
Gardener started successfully. Logs in: /srv/storage/gardener/logs
/srv/software/medic-core/v1.6.1/x64/lib/node_modules/npm/node_modules/aproba/index.js:26
if (!typeCheck(args[ii])) throw invalidType(ii, typeLabel, args[ii])
^
Error: Argument #2: Expected array but got string
at EventEmitter.install (/srv/software/medic-core/v1.6.1/x64/lib/node_modules/npm/lib/install.js:179:3)
at Object.commandCache.(anonymous function) (/srv/software/medic-core/v1.6.1/x64/lib/node_modules/npm/lib/npm.js:114:13)
at Object.exports.install (/srv/software/gardener/v1.1.1/lib/npm.js:41:18)
at Array.async.auto.install_package (/srv/software/gardener/v1.1.1/lib/processes.js:313:25)
at /srv/software/medic-core/v1.6.1/x64/lib/node_modules/async/lib/async.js:596:38
at _arrayEach (/srv/software/medic-core/v1.6.1/x64/lib/node_modules/async/lib/async.js:85:13)
at Object.async.auto (/srv/software/medic-core/v1.6.1/x64/lib/node_modules/async/lib/async.js:554:9)
at _install (/srv/software/gardener/v1.1.1/lib/processes.js:291:11)
at /srv/software/gardener/v1.1.1/lib/processes.js:135:17
at /srv/software/gardener/v1.1.1/lib/processes.js:448:20
The text was updated successfully, but these errors were encountered:
This much-simpler-than-expected compatibility fix tested out okay
on both NPM v3.8.9 and NPM v2.5.1. No runtime check required. I'll
test this out thoroughly and then submit an upstream PR.
Toward medic/cht-core#2612.
Gardener appears broken on Node v6.2.0. NPM's call-level interface has changed – specifically,
npm.commands.install(dir, url, fn)
has changed tonpm.commands.install(dir, args, fn)
, whereargs
can be[ url ]
. Audit all uses of thenpm
module for compatibility with the latest version, and fix API incompatibilities. Either (a) branch a new major version of Gardener for Node v6.x, or (b) add a runtime version check so that the same version of Gardener works on all versions of Node and NPM.The text was updated successfully, but these errors were encountered: