This seems to be because you’ve just symlinked the /usr/bin/ghost
binary to /usr/local/bin/ghost
, but during the installation it is trying to symlink from ../lib/node_modules/ghost-cli/bin/ghost
to /usr/local/bin/ghost
and detects the issue.
I would try:
rm /usr/bin/ghost
sudo npm install -g ghost-cli@latest
Alternatively you can:
rm /usr/bin/ghost
mv /usr/local/bin/ghost2 /usr/local/bin/ghost