Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPM Update from 9.8.0 to 9.10.0 Fails at path /var/directus/node_modules/sharp #13162

Closed
jabstein opened this issue May 7, 2022 · 0 comments
Closed

Comments

@jabstein
Copy link

jabstein commented May 7, 2022

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

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

@directus directus locked and limited conversation to collaborators May 7, 2022
@azrikahar azrikahar converted this issue into discussion #13167 May 7, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant