I tried to our existing node.js code and got the following error while building it. But when I created a new express node project it ran fine. Maybe there is some dependency issue; here's the error I had:
Error: Cannot find module '../build/Release/kerberos'
Please find the attached image,
PS: I was running mongod.exe and redis-server.exe too.
Kindly, is there any way around?
Thanks
Comments: Yes there is one : if you just click on [continue] three times, you will ignore this error. But an easy way is to add this exception : Error(MODULE_NOT_FOUND) to Exceptions list in visual studio. Process like this : Menu DEBUG=>Exceptions unfold node.js Exceptions Click Add... button Type : Node.JS Exceptions Name : Error(MODULE_NOT_FOUND) Click OK Then uncheck the Thrown check box right to the Exception you just created. Enjoy
Error: Cannot find module '../build/Release/kerberos'
Please find the attached image,
PS: I was running mongod.exe and redis-server.exe too.
Kindly, is there any way around?
Thanks
Comments: Yes there is one : if you just click on [continue] three times, you will ignore this error. But an easy way is to add this exception : Error(MODULE_NOT_FOUND) to Exceptions list in visual studio. Process like this : Menu DEBUG=>Exceptions unfold node.js Exceptions Click Add... button Type : Node.JS Exceptions Name : Error(MODULE_NOT_FOUND) Click OK Then uncheck the Thrown check box right to the Exception you just created. Enjoy