1

In my node.js app, I have a package.json file that has this configuration for the script.start property

  "scripts": {
    "start": "echo Starting to compile... && node start.js && echo Complete!"
  },

Then when I type npm start it shows on the command line

> [email protected] start C:\app\tools
> echo Starting to compile... && node start.js && echo Complete!

Is there a way I can hide this from showing in the command line?

Thanks

1 Answer 1

2

Instead of running npm start, run npm start -s.

I don't think there is any way to do this without passing a flag to npm start.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.