Hello,
I’ve started experimenting with self-hosted ghost on DigitalOcean.
After updating ghost-cli, the following appeared:
ghost-mgr@ghostonubuntu2004-s-1vcpu-1gb-fra1-01:/var/www/ghost$ sudo npm i -g ghost-cli@latest
/usr/bin/ghost -> /usr/lib/node_modules/ghost-cli/bin/ghost
+ ghost-cli@1.18.1
updated 2 packages in 20.573s
╭───────────────────────────────────────────────────────────────╮
│ │
│ New major version of npm available! 6.14.15 → 8.3.0 │
│ Changelog: https://github.com/npm/cli/releases/tag/v8.3.0 │
│ Run npm install -g npm to update! │
│ │
╰───────────────────────────────────────────────────────────────╯
I ran the command in ghost manager, and got the following response:
ghost-mgr@ghostonubuntu2004-s-1vcpu-1gb-fra1-01:/var/www/ghost$ npm install -g npm
npm WARN checkPermissions Missing write access to /usr/lib/node_modules/npm/node_modules/abbrev
npm WARN checkPermissions Missing write access to /usr/lib/node_modules/npm/node_modules/ansi-align
npm WARN checkPermissions Missing write access to /usr/lib/node_modules/npm/node_modules/ansi-regex
npm WARN checkPermissions Missing write access to /usr/lib/node_modules/npm/node_modules/aproba
npm WARN checkPermissions Missing write access to /usr/lib/node_modules/npm/node_modules/are-we-there-yet/node_modules/string_decoder
npm WARN checkPermissions Missing write access to /usr/lib/node_modules/npm/node_modules/asap
npm WARN checkPermissions Missing write access to /usr/lib/node_modules/npm/node_modules/asn1
npm WARN checkPermissions Missing write access to /usr/lib/node_modules/npm/node_modules/assert-plus
npm WARN checkPermissions Missing write access to /usr/lib/node_modules/npm/node_modules/asynckit
npm WARN checkPermissions Missing write access to /usr/lib/node_modules/npm/node_modules/aws-sign2
npm WARN checkPermissions Missing write access to /usr/lib/node_modules/npm/node_modules/aws4
npm WARN checkPermissions Missing write access to /usr/lib/node_modules/npm/node_modules/balanced-match
npm WARN checkPermissions Missing write access to /usr/lib/node_modules/npm/node_modules/bluebird
npm WARN checkPermissions Missing write access to /usr/lib/node_modules/npm/node_modules/buffer-from
npm WARN checkPermissions Missing write access to /usr/lib/node_modules/npm/node_modules/builtins
npm WARN checkPermissions Missing write access to /usr/lib/node_modules/npm/node_modules/byline
npm WARN checkPermissions Missing write access to /usr/lib/node_modules/npm/node_modules/byte-size
npm WARN checkPermissions Missing write access to /usr/lib/node_modules/npm/node_modules/call-limit
npm WARN checkPermissions Missing write access to /usr/lib/node_modules/npm/node_modules/camelcase
npm WARN checkPermissions Missing write access to /usr/lib/node_modules/npm/node_modules/capture-stack-trace
npm WARN checkPermissions Missing write access to /usr/lib/node_modules/npm/node_modules/caseless
npm WARN checkPermissions Missing write access to /usr/lib/node_modules/npm/node_modules/chownr
npm WARN checkPermissions Missing write access to /usr/lib/node_modules/npm/node_modules/ci-info
npm WARN checkPermissions Missing write access to /usr/lib/node_modules/npm/node_modules/cli-boxes
npm WARN checkPermissions Missing write access to /usr/lib/node_modules/npm/node_modules/cliui/node_modules/ansi-regex
npm WARN checkPermissions Missing write access to /usr/lib/node_modules/npm/node_modules/cliui/node_modules/is-fullwidth-code-point
(There were a few hundred other lines of WARN checkPremissions Missing write access to messages - I have omitted them due to limited space.)
npm ERR! code EACCES
npm ERR! syscall access
npm ERR! path /usr/lib/node_modules/npm/node_modules/abbrev
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, access '/usr/lib/node_modules/npm/node_modules/abbrev'
npm ERR! [Error: EACCES: permission denied, access '/usr/lib/node_modules/npm/node_modules/abbrev'] {
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path: '/usr/lib/node_modules/npm/node_modules/abbrev'
npm ERR! }
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/ghost-mgr/.npm/_logs/2022-01-21T08_54_35_115Z-debug.log
What was the problem here?
I’m a complete beginner so it would be helpful if someone could briefly explain what npm is, how it relates to ghost and if it needs constant updating.
Could running this command have jeopardized the stable running of ghost?
Ghost Version
4.32.3
Node.js Version
v14.18.3
How did you install Ghost?
DigitalOcean, droplet, (OS: Ubuntu, v20.04.3 LTS)