Description
Trying to install either the microservice gateway or the datapower gateway with docker-compose and I get the following error:
Step 7/12 : RUN npm install --silent -g npm && npm install --silent microgateway && npm install --silent microgateway && mkdir -p /usr/src/app/node_modules/microgateway/config/default
---> Running in a081ac6d04e7
/usr/local/bin/npm -> /usr/local/lib/node_modules/npm/bin/npm-cli.js
/usr/local/bin/npx -> /usr/local/lib/node_modules/npm/bin/npx-cli.js
[email protected] /usr/local/lib/node_modules/npm
/usr/local/lib/node_modules/npm/bin/npm-cli.js:79
let notifier = require('update-notifier')({pkg})
^^^
SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10)
at startup (node.js:140:18)
at node.js:1043:3
ERROR: Service 'microgateway' failed to build: The command '/bin/sh -c npm install --silent -g npm && npm install --silent microgateway && npm install --silent microgateway && mkdir -p /usr/src/app/node_modules/microgateway/config/default' returned a non-zero code: 1