Dependencias:
npm i -D babel-cli babel-preset-env nodemon
Configurar babel para su correcto funcionamiento en el package.json
:
"babel": {
"presets": [
"env"
]
},
Agregar los scripts al package.json
:
"scripts": {
"serve": "babel-node server.js",
"start": "nodemon --exec npm run serve"
},
A lot of friend helped me. your contribution great