Closed irigo3 closed 6 months ago
npm info run sharp@0.32.6 install node_modules/@strapi/plugin-upload/node_modules/sharp
It looks like you're trying to install @strapi/plugin-upload
, which depends on an out-of-date version of sharp.
If you are using another package which depends on a version of sharp that is not the latest, please open an issue against that package instead.
Closing as this is a downstream problem - please subscribe to https://github.com/strapi/strapi/pull/19311 for updates.
Possible install-time or require-time problem
You must confirm both of these before continuing.
Are you using the latest version of sharp?
sharp
as reported bynpm view sharp dist-tags.latest
.If you cannot confirm this, please upgrade to the latest version and try again before opening an issue.
If you are using another package which depends on a version of
sharp
that is not the latest, please open an issue against that package instead.Are you using a supported runtime?
^18.17.0 || ^20.3.0 || >=21.0.0
If you cannot confirm any of these, please upgrade to the latest version and try again before opening an issue.
Are you using a supported package manager and installing optional dependencies?
--include=optional
--no-optional=false
If you cannot confirm any of these, please upgrade to the latest version of your chosen package manager and ensure you are allowing the installation of optional or multi-platform dependencies before opening an issue.
What is the complete error message, including the full stack trace?
npm ERR! gyp ERR! cwd /builds/strapi/node_modules/@strapi/plugin-upload/node_modules/sharp npm ERR! gyp ERR! node -v v18.19.1 npm ERR! gyp ERR! node-gyp -v v9.3.1 npm ERR! gyp ERR! not ok npm verb exit 1 npm verb unfinished npm timer reify 1708527222217 npm verb unfinished npm timer reify:build 1708527313827 npm verb unfinished npm timer build 1708527313828 npm verb unfinished npm timer build:deps 1708527313829 npm verb unfinished npm timer build:run:install 1708527313928 npm verb unfinished npm timer build:run:install:node_modules/@strapi/plugin-upload/node_modules/sharp 1708527313956 npm verb code 1
npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2024-02-21T14_53_41_942Z-debug-0.log
section_end:1708527324:step_script [0Ksection_start:1708527324:cleanup_file_variables [0K[0K[36;1mCleaning up project directory and file based variables[0;m[0;m
section_end:1708527324:cleanup_file_variables [0K[31;1mERROR: Job failed: command terminated with exit code 1 [0;m
What is the complete output of running
npm install --verbose --foreground-scripts sharp
in an empty directory?What is the output of running
npx envinfo --binaries --system --npmPackages=sharp --npmGlobalPackages=sharp
?npm WARN exec The following package was not found and will be installed: envinfo@7.11.1 System: OS: Linux 5.15 Alpine Linux CPU: (8) x64 Intel(R) Xeon(R) Platinum 8488C Memory: 25.15 GB / 30.80 GB Container: Yes Shell: 1.36.1 - /bin/ash Binaries: Node: 18.19.1 - /usr/bin/node npm: 9.6.6 - /usr/bin/npm