Closed oolong32 closed 7 years ago
It's because NPM needs npm run blabla
where Yarn only needs yarn blabla
. If you want to use NPM, add run
everywhere.
Thanks.
"start": "npm run start:dev",
"start:dev": "nodemon --ignore lib --exec babel-node src/server",
This works indeed.
And by the way, this tutorial is exceptionally well done. Thank you again.
You're very welcome :)
Refers to chapter ‘Nodemon’
Abstracting the start script (from start to dev:start) seems not to work when using npm instead of yarn. I only got the start script to work when I removed the save-dev line and put everything back into ‘start’: