Did you try running npm install in your nodebb folder? nodejs 15 is not supported use 16 or 18
PHP Code to Node.js Code Conversion
-
I have the following piece of code:
session_set_cookie_params(0, '/', '.site.net'); session_start(); if(!isset($_SESSION["auth"])) { $_SESSION["auth"] = true; header("Location: https://secure.site.net/auth?return_url=https://forums.site.net$_SERVER[REQUEST_URI]"); }
How can I convert this to Node.js and where should I place it so that all requests to my NodeBB forum pass through this? I can't figure out how to do this.