How to fix the “Cannot find module ‘ts-node/register’” error with Node.js?

Sometimes, we want to fix the “Cannot find module ‘ts-node/register’” error with Node.js.

In this article, we’ll look at how to fix the “Cannot find module ‘ts-node/register’” error with Node.js.

How to fix the “Cannot find module ‘ts-node/register’” error with Node.js?

To fix the “Cannot find module ‘ts-node/register’” error with Node.js, we can install ts-node with npm install.

To install it, we run

npm install ts-node --save-dev

Conclusion

To fix the “Cannot find module ‘ts-node/register’” error with Node.js, we can install ts-node with npm install.