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: Hey, I found a solution for the error. If you are not using kerberos just go to the folder node_modules\mongoose\node_modules\mongodb\node_modules\kerberos\build\Release or this node_modules\connect-mongo\node_modules\mongodb\node_modules\kerberos\build\Release kerberos.node - delete this file, or rename it. I think visual studio was trying to read it somehow.
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: Hey, I found a solution for the error. If you are not using kerberos just go to the folder node_modules\mongoose\node_modules\mongodb\node_modules\kerberos\build\Release or this node_modules\connect-mongo\node_modules\mongodb\node_modules\kerberos\build\Release kerberos.node - delete this file, or rename it. I think visual studio was trying to read it somehow.