Why am I getting this when the module is installed? (edit, TY to whoever fixed! ilu! XD)


#1
module.js:550
throw err;
^
Error: Cannot find module 'node-random-name'
at Function.Module._resolveFilename (module.js:548:15)
at Function.Module._load (module.js:475:25)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
Jump to

at Object.<anonymous> (/app/commands/buy kitty.js:2:20)
at Module._compile (module.js:653:30)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
Jump to

at jsfile.forEach (/app/index.js:39:17)
at Array.forEach (<anonymous>)
Jump to

at fs.readdir (/app/index.js:38:10)
at FSReqWrap.oncomplete (fs.js:135:15)

even though package.json has
“node-random-name”: “^1.0.1”

cookiebo


MOD EDIT: formatting


#2


#3

Hey @vampymaria are you still seeing either of these problems? It sounds like you feel like the first is resolved, but I don’t imagine that anyone fixed anything since your project is private and I don’t see any record of you raising your hand in the editor for help. It looks as though the error may only occur when the buy kitty.js command is executed - perhaps you;re not seeing the error because no one’s calling that command?

The memory used issue may be related to how we calculate the total memory used and if it’s wrong we’d love to correct it, but we’d probably need more information to isolate the issue. I’ll forward this to our team, but if you run into it again we’d love to hear about it.


#5

the error fixed by someone/something triggering the node modules to reinstall themselves (Which I did not do) As for the memory, it was only during that error I saw that :thinking: