I follow that you write. But when I run node index.js the console log return this error
Richard Ortiz
3

Reading error messages

If you take a closer look at your error message it says:

“Error: Cannot find module ‘babel/register’ ”

It is complaining about the babel register module.

Looks like it’s missing from your node modules

Fix?

You most likely missed the step 2.

Try running

“$ npm i babel-register — save”

in the directory where your project is located

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.