This guide explains how to use nvm
with local and production Ghost installs.
nvm
is installed locally in /root
or /home
then you’ll run into permission problems. Ghost requires a system wide installation. We recommend uninstalling nvm to avoid permission problems. A symlink from the local installation to usr/bin/node
will not work.
Uninstall nvm
using:
~/.bash_profile or ~/.bashrc
and remove any nvm
lines.
nvm
(Node Version Manager).
Ensure nvm
is installed correctly:
nvm
is not installed in the root folder /root/.nvm
. If nvm is installed in the root folder, uninstall nvm, and reinstall it using a non-root user.nvm
default version to the one you will use for Ghost before installing ghost-cli
. If your default is different, you should switch to the correct version each time you start a new session and run any ghost commands.ghost-cli
in a different environment than the active node environment. ghost-cli
needs to be installed and run in the same environment.
To resolve this choose one of the following:
Run npm install ghost-cli -g
in the current environment to get the right sqlite3 node module into the environment and go through ghost setup
process again.
If you remember which nvm node environment you’ve installed ghost-cli
under, run nvm use <node version>
.