npm init -y
npm i --save-dev nodemon
npm add babel-preset-env babel-cli
Create a .babelrc
config in your project root. Insert the following
{
"presets": ["env"]
}
In package.json
add this to scripts
:
"dev": "nodemon --exec babel-node index.js"
To run: npm run dev
Thanks @HamidOsouli-zz 🙌
I think the link doesn't exist anymore.