You can't get the current user data without their uid. If you have access to the express req object you can grab it with req.uid or if it is a socket call then its socket.uid. The value of uid is 0 if the user is not logged in.
Error: Cannot find module '/nodebb/public/language/en/app'
reaon last edited by reaon
Going to run nodeBB by
node app, it responds the below error:
module.js:340 throw err; ^ Error: Cannot find module '/var/www/nodebb/public/language/en/app' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Function.Module.runMain (module.js:497:10) at startup (node.js:119:16) at node.js:902:3
(On last try, I had changed some phrases on language/en/xxx.json files)
Hey @reaon, you'll have to go back to the root of the directory in order to run nodebb:
cd ../../../ ./nodebb start
reaon last edited by
Yes; thank you
How to mark this topic as "Solved/Answerd"?
No need for that here. But maybe a plugin in the future