-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error in step 5 #43
Comments
I've fixed this one by updating microservice/Dockerfile from node:4-slim to node:6-slim. I can't confirm that there are no issues in the microservice container, though, but docker-compose up -d completed and I can see gateway, portal, etc. Thanks, |
Hi Slaterx, I changed the dockerfile as you suggested. It downloaded the image node6-slim. Error: Cannot find module 'isarray' Please suggest if we have to do anything else. Thanks, |
I have got exactly the same problem ! Any solutions ? |
Hello AjayKumaraj, did you get a solution for this one. I also tried your solution without success ; same problem. Also trie it on AWS, no sucess. Tried it on a local VM ( But this is not an option for me ), it works. Do we nedd a special version of the host OS ? I have tried RHEL and Centos 7. |
I'm having the same problem. SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode When I modified microservice/Dockerfile from node:4-slim to node:6-slim per @slaterx above, I got a different error message module.js:478 Error: Cannot find module 'strip-ansi' Changed it to node:5-slim threw a different error. Anyone have any idea what's going on? Anyone have a working Docker image instead? |
@Anjana-rak + @djans, I was able to complete this by changing both microservice/Dockerfile and microservice/Dockerfile from node:4-slim to node:8-slim. o$ docker-compose -f docker-compose-microgateway.yaml ps
Name Command State Ports
--------------------------------------------------------------------------
esmaster /docker-entrypoint.sh /bin ... Up 9200/tcp, 9300/tcp
microgateway /bin/sh -c /usr/bin/app.sh ... Up
microservice /bin/sh -c /usr/bin/app.sh ... Up 8080/tcp Not fully tested the services though |
/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 'microservice' failed to build: The command '/bin/sh -c npm install --silent -g npm && npm install --silent --prod && npm prune --prod' returned a non-zero code: 1
The text was updated successfully, but these errors were encountered: