It used to be that you had to upgrade in multiple steps, but not anymore. You can upgrade directly from 1.12.0 to 1.13.2
Make sure you backup your database
First of all, here's the console output and here's the contents of the full log
I'm upgrading from NodeBB 1.10.1 to 1.10.2 following the upgrade guide, and run into an error whenever I run ./nodebb upgrade
. I followed the steps in the guide without issue (shutdown, backup git fetch/reset), but ./nodebb upgrade
errors out no matter what I do. It appears to be an issue with [email protected]
not finding the file node_modules/sharp/install/libvips
, which I can confirm is not on the disk.
I'm not sure how to fix this issue, any advice would be appreciated.
System info:
node -v
: v10.13.0npm -v
: 6.4.1EDIT: I attempted to solve the issue by running rm -rf node_modules; ./nodebb upgrade
and am now getting the following error:
> [email protected] install /var/www/friendos.club/node_modules/benchpressjs
> cd rust/benchpress-rs && npm install
sh: 1: cd: can't cd to rust/benchpress-rs
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] install: `cd rust/benchpress-rs && npm install`
npm ERR! Exit status 2
I fixed my own issue. Apparently some install scripts fail when run as root (or with sudo). I'm not sure why this is the case, but I got everything to work by running sudo chown -R ralph:www-data /path/to/nodebb && ./nodebb upgrade
as a standard user.