Hello @phenomlab
I want to test alpha1 for V3 for test JS, theme switcher, css themes, etc.
I have upgraded my dev environnement to 2.8.1
I follow this link : https://community.nodebb.org/post/89581
So, hop !
cd /path/to/your/nodebb
git rev-parse HEAD # save this value in case you need to roll back --- 727f879e5b1698fcf9bdbaca5181b28d0e9497fd
git fetch && git checkout bootstrap5
git reset --hard v3.0.0-alpha.1
./nodebb upgrade -mi
But
nodebb@node:~$ cd /home/nodebb/nodebb/
nodebb@node:~/nodebb$ git rev-parse HEAD
727f879e5b1698fcf9bdbaca5181b28d0e9497fd
nodebb@node:~/nodebb$ git fetch && git checkout bootstrap5
error: impossible d'ouvrir .git/FETCH_HEAD: Permission non accordée
nodebb@node:~/nodebb$ su -
Mot de passe :
root@node:~# cd /home/nodebb/nodebb/
root@node:/home/nodebb/nodebb# git fetch && git checkout bootstrap5
remote: Enumerating objects: 5, done.
remote: Counting objects: 100% (5/5), done.
remote: Total 5 (delta 4), reused 5 (delta 4), pack-reused 0
Dépaquetage des objets: 100% (5/5), 441 octets | 73.00 Kio/s, fait.
Depuis https://github.com/NodeBB/NodeBB
cf7aa1941..71743affc bootstrap5 -> origin/bootstrap5
La branche 'bootstrap5' est paramétrée pour suivre la branche distante 'bootstrap5' depuis 'origin'.
Basculement sur la nouvelle branche 'bootstrap5'
root@node:/home/nodebb/nodebb# git reset --hard v3.0.0-alpha.1
HEAD est maintenant à 4f70d19e1 chore: v3.0.0-alpha.1 :tada:
root@node:/home/nodebb/nodebb# ./nodebb upgrade -mi
Dependencies outdated or not yet installed.
Installing them now...
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: nodebb@3.0.0-alpha.1
npm WARN Found: nodebb-plugin-emoji@4.0.6
npm WARN node_modules/nodebb-plugin-emoji
npm WARN nodebb-plugin-emoji@"5.0.2" from the root project
npm WARN 2 more (@nodebb/nodebb-plugin-reactions, nodebb-plugin-emoji-android)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer nodebb-plugin-emoji@"^4.0.0" from @nodebb/nodebb-plugin-reactions@1.0.2
npm WARN node_modules/@nodebb/nodebb-plugin-reactions
npm WARN @nodebb/nodebb-plugin-reactions@"^1.0.2" from the root project
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: nodebb@3.0.0-alpha.1
npm WARN Found: nodebb-plugin-markdown@10.1.1
npm WARN node_modules/nodebb-plugin-markdown
npm WARN nodebb-plugin-markdown@"11.0.2" from the root project
npm WARN 1 more (nodebb-plugin-extended-markdown)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer nodebb-plugin-markdown@"^10.0.0" from nodebb-plugin-extended-markdown@1.6.0
npm WARN node_modules/nodebb-plugin-extended-markdown
npm WARN nodebb-plugin-extended-markdown@"^1.6.0" from the root project
npm ERR! code 128
npm ERR! An unknown git error occurred
npm ERR! command git --no-replace-objects ls-remote ssh://git@github.com/makeusabrew/bootbox.git
npm ERR! Warning: Permanently added 'github.com,140.82.121.3' (ECDSA) to the list of known hosts.
npm ERR! git@github.com: Permission denied (publickey).
npm ERR! fatal: Impossible de lire le dépôt distant.
npm ERR!
npm ERR! Veuillez vérifier que vous avez les droits d'accès
npm ERR! et que le dépôt existe.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2023-01-05T21_47_28_777Z-debug-0.log
Error installing dependencies!
message: Command failed: npm install --omit=dev
stdout: null
stderr: null
/home/nodebb/nodebb/src/cli/package-install.js:138
throw e;
^
Error: Command failed: npm install --omit=dev
at checkExecSyncError (node:child_process:841:11)
at Object.execSync (node:child_process:912:15)
at Object.pkgInstall.installAll (/home/nodebb/nodebb/src/cli/package-install.js:129:9)
at Object.<anonymous> (/home/nodebb/nodebb/src/cli/index.js:51:18)
at Module._compile (node:internal/modules/cjs/loader:1126:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
at Module.load (node:internal/modules/cjs/loader:1004:32)
at Function.Module._load (node:internal/modules/cjs/loader:839:12)
at Module.require (node:internal/modules/cjs/loader:1028:19) {
status: 128,
signal: null,
output: [ null, null, null ],
pid: 1251,
stdout: null,
stderr: null
}
An idea ?