Cannot find resource directory for module test3

Asked By 20 points N/A Posted on -
qa-featured

Hi,

I just got this annoying error message while I tried to install express globally and ejs locally but an error message occurred during this project. How can I resolve this error message? Any help would be appreciated. I have spent so much time to fix this issue but the problem exists. Suggest me with a possible solution. Thanks.


Error

Cannot find resource directory for module test3

SHARE
Answered By 15 points N/A #174074

Cannot find resource directory for module test3

qa-featured

Hi Robert,
The error is because the modules are not installed in the current directory.
There are multiple solution to it.

Solution 1:
1) Click 'Start', Go to 'Command Prompt'
2) Type path 'home/dave/src/server/'. Search for the specific directory
3) Install the directory globally using the command 'npm install -g'
4) Install all the files in the path mentioned above

Solution 2:
1) Go to 'apps.js' folder in the folder path hierarchy
2) Go one level up in 'apps.js' folder and type the command 'npm install ejs'
3) After executing the command, Restart the system

Related Questions