ghtv99
By:
ghtv99

Getting a weird error when I use "node site.js"

June 24, 2017 105 views
JavaScript Node.js Ubuntu

So when I type in "node site.js" I get this very strange message that I have never gotten before

module.js:338
throw err;
^
Error: Cannot find module 'mysql'
at Function.Module.resolveFilename (module.js:336:15)
at Function.Module.
load (module.js:278:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (/home/bot/site.js:1:75)
at Module.compile (module.js:460:26)
at Object.Module.
extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Function.Module.runMain (module.js:501:10)

I dont even know where to began on this on I really need to get this project done. I will be able to share the .js files you need to look at just tell me what ones