Replies: 1 comment 1 reply
-
This seems to be related with the Sharp package. Can you try the resolution steps offered by them based on the link present in your error log? Specifically this recommendation:
because you are on Node |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the Bug
Trying to update directus to latest build, but keep running into errors.
The directus is deployed via digital ocean one click and has been updated from 9.4 to 9.8 before, but gives errors on 9.8 to 9.10
To Reproduce
login to server directus directory and initiate npm update
Errors Shown
root@directusServer:/var/directus# npm update
npm WARN deprecated @types/pino@7.0.5: This is a stub types definition. pino provides its own type definitions, so you do not need this installed.
npm WARN deprecated @types/cssnano@5.1.0: This is a stub types definition. cssnano provides its own type definitions, so you do not need this installed.
npm WARN deprecated fastify-warning@0.2.0: This module renamed to process-warning
npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated uuid@3.3.2: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm ERR! code 1
npm ERR! path /var/directus/node_modules/sharp
npm ERR! command failed
npm ERR! command sh -c (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
npm ERR! sharp: Are you trying to install as a root or sudo user? Try again with the --unsafe-perm flag
npm ERR! sharp: Please see https://sharp.pixelplumbing.com/install for required dependencies
npm ERR! sharp: Installation error: EACCES: permission denied, mkdir '/root/.npm'
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2022-05-06T16_02_31_316Z-debug-0.log
More info
What version of Directus are you using?
9.8.0
What version of Node.js are you using?
14.15.4
What database are you using?
postgresql
What browser are you using?
chrome
How are you deploying Directus?
digital ocean server one click
Beta Was this translation helpful? Give feedback.
All reactions