Reputation: 43863
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
Upvotes: 1
Views: 817
Reputation: 6994
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
.
Upvotes: 2