Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Web Technology by (47.6k points)

C:\Users\Nick\Desktop\turntablefm\Bots\Super Bot>node bot.js

node.js:201 

throw e; // process.nextTick error, or 'error' event on 

first tick ^ 

Error: Cannot find module 'mongoose' 

at Function._resolveFilename (module.js:334:11) 

at Function._load (module.js:279:25) 

at Module.require (module.js:357:17) 

at require (module.js:368:17) 

at Object.<anonymous>

(C:\Users\Nick\Desktop\turntablefm\Bots\Super Bot\db.j 

s:1:78) 

at Module._compile (module.js:432:26) 

at Object..js (module.js:450:10) 

at Module.load (module.js:351:31) 

at Function._load (module.js:310:12) 

at Module.require (module.js:357:17)

I already installed it using npm install and I tried reinstalling but that didn't work any ideas?

1 Answer

0 votes
by (106k points)

To get rid of that error you should try installing using this command :

npm install mongoose

And do not use the -g switch.

Related questions

0 votes
1 answer
0 votes
2 answers
asked Oct 16, 2019 in Web Technology by Sammy (47.6k points)
0 votes
2 answers
0 votes
2 answers

Browse Categories

...