Use this code
git fetch # Grab the latest code from the NodeBB repository git checkout v3.x git reset --hard origin/v3.xAnd you will have the latest version without specifying it
https://docs.nodebb.org/configuring/upgrade/
@cagatay you should be able to downgrade if you stop your NodeBB instance, run the following commands
git fetch # Grab the latest code from the NodeBB repository
git checkout v2.x # Switch to the v2.x branch since we are now upgrading to NodeBB version 2
git reset --hard origin/v2.x
Then finally run
./nodebb upgrade
And then restart NodeBB. That should return you to the v2 train.
@phenomlab said in NodeBB v3 and Harmony Theme:
Grab the latest code from the NodeBB repository
there is eror when upgraded;
2023-01-21T12:16:27.336Z [4567/1270169] - error: [build] client side sty les build failed
2023-01-21T12:16:27.336Z [4567/1270169] - error: [build] Encountered error durin g build step
FileError: './theme' wasn't found. Tried - ./theme.less,/home/nodes/nodebb/node_ modules/nodebb-theme-harmony/theme.less,/home/nodes/nodebb/node_modules/theme.le ss,/home/nodes/nodebb/public/less/theme.less,/home/nodes/nodebb/public/vendor/fo ntawesome/less/theme.less,theme.less in input on line 1, column 1:
1 @import "./theme";
2
Error occurred during upgrade: undefined
(node:1270169) UnhandledPromiseRejectionWarning: Unhandled promise rejection. Th is error originated either by throwing inside of an async function without a cat ch block, or by rejecting a promise which was not handled with .catch(). To term inate the node process on unhandled promise rejection, use the CLI flag `--unhan dled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejec tions_mode). (rejection id: 1)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:1270169) [DEP0018] DeprecationWarning: Unhandled promise rejections are de precated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
@cagatay that’s telling you that the persona theme is missing. Change the theme back to persona and then retry the upgrade.
@phenomlab recent cards not working normally.
downgrade is done! thank you.
i thin the problem is the avatar size.
@cagatay remove the recent cards plugin and reinstall it.
@phenomlab same result.
i had deleted and reinstalled recent card but nothing chaged.
by the way without recent card my current page on topic as below;
the avatar size is very big.
@cagatay Did you rebuild and restart after the removal before you re-installed ?
@phenomlab of course Mark i done.
this is who is reading post type;
@cagatay Are you sure that’s not nodebb-plugin-browsing-users
in the screenshot ?
@phenomlab i had same problem recent card and browsing user…
@cagatay I’m logged into your site now. Taking a look
@phenomlab thank you Mark.
@cagatay I see the issue.
I’ve removed
nodebb-plugin-browsing-users
nodebb-plugin-recent-cards
You need to use the CLI
to install the correct versions as below, which I’m doing now
npm install nodebb-plugin-browsing-users@2.0.4
npm install nodebb-plugin-recent-cards@2.0.23
The versions you are using now are not compliant with v2 which is why they do not work properly.
@cagatay Should be all sorted now
Don’t forget to put your language back to Turkish.