Report this

What is the reason for this report?

Is it possible to start my 14.04 MEAN app with npm start instead of Grunt?

Posted on August 30, 2017

I’m deploying my own app to a MEAN droplet on 14.04, and don’t really need the grunt config. Is it possible to start the app and have it be available at http://<my_droplet_IP>:3000 using something like:

NODE_ENV=production PORT=80 npm start ?

When I do this, the app does start ok but is not available in the browser

I’m new to node and ubuntu so I might need some very basic info. Thanks.



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!

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.

Sorry to see that your question hasn’t received an answer yet. Unfortunately, without more information, it is unlikely an answer for this specific question will be provided. To answer the more general question: Yes, it is possible, but there should be no difference between the two. In fact, for the version of the MEAN stack you are using, npm start simply calls grunt From the package.json file:

  "scripts": {
    "start": "grunt",
    "test": "grunt test",
    "postinstall": "bower install --config.interactive=false"
  },

More recently, the MEAN stack has moved from using grunt to using gulp. The current package.json now calls gulp when you run npm start:

    "start": "gulp",

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.