Categories
JavaScript Answers

How to fix “Error: Cannot find module ‘ejs’ ” with Node.js?

Spread the love

To fix "Error: Cannot find module ‘ejs’ " with Node.js, we install the ejs library.

To install it, we run

npm install ejs

in our project folder to install the ejs package with npm.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published. Required fields are marked *