I attempted to update Ghost this morning but ran into an outdated version of Node.js. I followed the information in the original thread, and the instructions in the Node.js thread but, according to Ghost, Node didn't update.
Here is the installation steps I used with the slight modifications to match my installation:
cd ~/apps/ghost_app/node_modules/
mv node node.old
mkdir node
wget https://nodejs.org/dist/v20.9.0/node-v20.9.0.tar.gz
tar zxf node-v20.9.0.tar.gz
cd ~/apps/ghost_app/node_modules/node-v20.9.0
scl enable devtoolset-11 -- ./configure --prefix=$HOME/apps/ghost_app/node_modules
scl enable devtoolset-11 -- make -j2
scl enable devtoolset-11 -- make install
Everything seemed to work as intended. The scl enable devtoolset-11 -- make -j2
process took roughly two hours, and then the scl enable devtoolset-11 -- make install
process completed. I then ran the Ghost updater and got the following message:
Message: Ghost v5.71.0 is not compatible with the current Node version. Your node version is 16.20.0, but Ghost v5.71.0 requires ^18.12.1
Debug Information:
OS: CentOS Linux, v7
Node Version: v16.20.0
Ghost Version: 5.70.2
Ghost-CLI Version: 1.25.3
Environment: production
Command: 'ghost update --no-setup-linux-user'
Any ideas about what is missing here? Thank you!