Question

Error when building MEAN with Docker

Hi there,

I am having an issue when trying to build MEAN with docker. Error I got is:

Step 12/17 : RUN npm install --quiet && npm cache clean
 ---> Running in dc104140e806
npm WARN deprecated ignore@2.2.19: several bugs fixed in v3.2.1
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated graceful-fs@1.2.3: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN prefer global node-gyp@3.6.0 should be installed with -g

> phantomjs-prebuilt@2.1.14 install /opt/mean.js/node_modules/phantomjs-prebuilt
> node install.js

ERROR: Service 'web-data' failed to build: The command '/bin/sh -c npm install --quiet && npm cache clean' returned a non-zero code: 1

Please, can you help me? I couldn’t find anything on the net about this error.

Thanks!


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

@salopez Are you trying to build it from here , I just did and it worked without any problems.

However you can use it like this docker run -P -d meanjs/mean.

Hope this helps.