Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Is there a way programmatically to retrieve the current, running, NodeBB version number?
Thank you.
var packageData = require('./package.json'); console.log(packageData.version);
Thank you @baris . Your tip didn't get me precisely what I needed but it got me on the right path. This is what I was looking for: config.version
config.version
P
@pitaj thanks,it works~
B
https://github.com/NodeBB/NodeBB/issues/8774
@scen you can ignore that if you want... not an issue or error.
if you want the warning to go away then, add this to the package.json file in your theme (assuming you are using NodeBB 1.x.x)
S
@julian Redirecting to HTTPS, yes.
J
Thanks for answering this with such speed @Kowlin @pichalite 😄