I'm trying to execute an api on a button click,
For example, the following command:
const api = await app.require('api'); await api.put(`/groups/test/membership/1550`);
Hi, you are executing an api command through a browser, I am looking for a way to embed this script in Nodbibi, and that it will be activated immediately when the page is loaded, (can also be done when a button is pressed).
But no option works, I tried onload, and it doesn't work. I tried with btn - to be activated with id. doesn't work either.
On the other hand, the script works by itself when you run it in the console.
Need urgent help, thanks!
I have now entered the forum and this is what appears to me:
This is a forum with hundreds of users, thousands of posts, urgently needed help!
When I recently tried to run a nodebb root command, or rather, anything that contains the command: ./nodebb.
The following output is obtained:
/bin/sh: 1: npm: not found Error installing dependencies! message: Command failed: npm install --production stdout: null stderr: null /home/levi/nodebb770/src/cli/package-install.js:82 throw e; ^ Error: Command failed: npm install --production at checkExecSyncError (child_process.js:629:11) at Object.execSync (child_process.js:666:13) at Object.installAll (/home/levi/nodebb770/src/cli/package-install.js:73:9) at Object.<anonymous> (/home/levi/nodebb770/src/cli/index.js:62:18) at Module._compile (internal/modules/cjs/loader.js:778:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) at Module.require (internal/modules/cjs/loader.js:692:17)
Can anyone help me regarding this what exactly does it mean? And what is the solution?
Specifically now I'm trying to run the .nodebb setup command
I'm willing to give the ssh keys for someone to do it for me ...
I turned on maintenance mode all of a sudden it took me out of the forum, I tried to log in as a manager, and he does not give, pictures:
After clicking Login:
After entering the details and logging in:
Attempt to access management:
I'm sure it's related to maintenance mode, I can not turn off, because I'm not as a manager, so maybe it's possible to turn off through the server?
If I want to build NODEBB on version 1.17.0, what command do I run?
git clone https://github.com/NodeBB/NodeBB
This is the command to build the most up-to-date NODEBB, but what is the command to 1.17.0?
Someone once told me I should put @ after the command and write down the version I want, is that right?