Upgrade from v1.12.2 to v1.13.2 fails because of bootswatch dependency
Running ./nodebb upgrade I get the following:
Dependencies outdated or not yet installed. Installing them now... npm ERR! code 128 npm ERR! Command failed: git clone --mirror -q git://github.com/thomaspark/bootswatch.git /root/.npm/_cacache/tmp/git-clone-969f95f2/.git npm ERR! fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-969f95f2/.git' npm ERR!
I'm aware of the following issue and did try the suggested workaround in this comment: https://github.com/NodeBB/NodeBB/issues/7967#issuecomment-541572134
To no avail.
So the hash doesn't work for me despite https://github.com/thomaspark/bootswatch/pull/916#issuecomment-540655426
Is there a way to circumvent this and upgrade to the latest?
Any pointers highly appreciated, thanks in advance!
Am I really the only one with this issue??!!??
You should not be installing or running NodeBB as root. You should not be running npm as root, that is what is causing your issue.
@PitaJ How embarrassing It didn't even come to my mind but now that I could "do the right thing" and re-install, the issue is indeed gone and I could update normally.
Thanks for your help!