I run ghost 3.41.3 and its perfect.
I recently thought on a day off I would upgrade.
Error after error.
NPM wont install latest Ghost CLI (pasted below fo anyones interest)
Permissions errors! I am so over it. I have lost hours here.
Whats the harm in just leaving it?
I really enjoy ghost but this is making me feel uncomfortable. I am not a terminal guru and can only follow guides.
Any others have thoughts on this?
gj@localhost:/var/www/ghost$ npm install -g ghost-cli@latest
npm ERR! code EACCES
npm ERR! syscall unlink
npm ERR! path /usr/bin/ghost
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, unlink ‘/usr/bin/ghost’
npm ERR! { [Error: EACCES: permission denied, unlink ‘/usr/bin/ghost’]
npm ERR! cause:
npm ERR! { Error: EACCES: permission denied, unlink ‘/usr/bin/ghost’
npm ERR! errno: -13,
npm ERR! code: ‘EACCES’,
npm ERR! syscall: ‘unlink’,
npm ERR! path: ‘/usr/bin/ghost’ },
npm ERR! stack:
npm ERR! ‘Error: EACCES: permission denied, unlink ‘/usr/bin/ghost’’,
npm ERR! errno: -13,
npm ERR! code: ‘EACCES’,
npm ERR! syscall: ‘unlink’,
npm ERR! path: ‘/usr/bin/ghost’ }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/gj/.npm/_logs/2021-05-13T12_33_31_218Z-debug.log