I am updating the babel packages used in a boilerplate, from babel-core, babel-register, etc., to @babel/core, @babel/register, etc.
Problem: In the npm script dev, it was previously using babel-register to run server.js.
"dev": "concurrently -k 'node -r babel-register server.js' 'npm start'",
After updating the babel-register npm package to @babel/register, the above script throws the error
Error: Cannot find module 'babel-register'
What is the correct command to update babel-register server.js?
It's the same as the other places. You'd want