https://code.tutsplus.com/tutorials/site-authentication-in-nodejs-user-sign-up--cms-29933

Creamos un directorio site-auth, en el directorio:
npm init -y
Nos creará package.json, '-y', default options

Instalamos ademas:,
npm install bcryptjs connect-flash cookie-parser express express-handlebars express-messages express-session joi mongoose morgan passport passport-local
Se nos creara un nuevo package.json