lovell / sharp

High performance Node.js image processing, the fastest module to resize JPEG, PNG, WebP, AVIF and TIFF images. Uses the libvips library.
https://sharp.pixelplumbing.com
Apache License 2.0
29.13k stars 1.3k forks source link

Failed to install sharp #3234

Closed daicheng123 closed 2 years ago

daicheng123 commented 2 years ago

Possible install-time or require-time problem

Are you using the latest version of sharp?

I use 0.30.1 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.

Is this a problem with filesystem permissions?

If you are using npm v6 or earlier and installing as a root or sudo user, have you tried with the npm install --unsafe-perm flag?

If you are using npm v7 or later, does the user running npm install own the directory it is run in?

If you are using the ignore-scripts feature of npm, have you tried with the npm install --ignore-scripts=false flag?

What is the complete output of running npm install --verbose --foreground-scripts sharp in an empty directory?

### When I use npm install --unsafe-perm to package, the error is as follows: ```sh npm install --unsafe-perm > sharp@0.30.1 install /home/jenkins/agent/workspace/wholee-m_feature_dayu/node_modules/sharp > (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy) sharp: Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.12.2/libvips-8.12.2-linux-x64.tar.br sharp: Installation error: EPERM: operation not permitted, lchown '/home/jenkins/agent/workspace/wholee-m_feature_dayu/node_modules/sharp/vendor/8.12.2/linux-x64/lib' sharp: Please see https://sharp.pixelplumbing.com/install for required dependencies gyp ERR! build error gyp ERR! stack Error: not found: make gyp ERR! stack at getNotFoundError (/root/.nvm/versions/node/v14.19.3/lib/node_modules/npm/node_modules/which/which.js:13:12) gyp ERR! stack at F (/root/.nvm/versions/node/v14.19.3/lib/node_modules/npm/node_modules/which/which.js:68:19) gyp ERR! stack at E (/root/.nvm/versions/node/v14.19.3/lib/node_modules/npm/node_modules/which/which.js:80:29) gyp ERR! stack at /root/.nvm/versions/node/v14.19.3/lib/node_modules/npm/node_modules/which/which.js:89:16 gyp ERR! stack at /root/.nvm/versions/node/v14.19.3/lib/node_modules/npm/node_modules/isexe/index.js:42:5 gyp ERR! stack at /root/.nvm/versions/node/v14.19.3/lib/node_modules/npm/node_modules/isexe/mode.js:8:5 gyp ERR! stack at FSReqCallback.oncomplete (fs.js:192:21) gyp ERR! System Linux 5.4.172-90.336.amzn2.x86_64 gyp ERR! command "/root/.nvm/versions/node/v14.19.3/bin/node" "/root/.nvm/versions/node/v14.19.3/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/jenkins/agent/workspace/wholee-m_feature_dayu/node_modules/sharp gyp ERR! node -v v14.19.3 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok npm WARN @apideck/better-ajv-errors@0.3.1 requires a peer of ajv@>=8 but none is installed. You must install peer dependencies yourself. npm WARN @fe/fe-i18n@1.2.7 requires a peer of react@^16.0.0 but none is installed. You must install peer dependencies yourself. npm WARN @fe/fe-i18n@1.2.7 requires a peer of react-dom@^16.0.0 but none is installed. You must install peer dependencies yourself. npm WARN @testing-library/react@13.1.1 requires a peer of react@^18.0.0 but none is installed. You must install peer dependencies yourself. npm WARN @testing-library/react@13.1.1 requires a peer of react-dom@^18.0.0 but none is installed. You must install peer dependencies yourself. npm WARN babel-loader@8.2.3 requires a peer of webpack@>=2 but none is installed. You must install peer dependencies yourself. npm WARN clean-webpack-plugin@4.0.0 requires a peer of webpack@>=4.0.0 <6.0.0 but none is installed. You must install peer dependencies yourself. npm WARN css-blank-pseudo@3.0.0 requires a peer of postcss@^8.3 but none is installed. You must install peer dependencies yourself. npm WARN css-has-pseudo@3.0.0 requires a peer of postcss@^8.3 but none is installed. You must install peer dependencies yourself. npm WARN css-prefers-color-scheme@6.0.0 requires a peer of postcss@^8.3 but none is installed. You must install peer dependencies yourself. npm WARN less-loader@10.2.0 requires a peer of webpack@^5.0.0 but none is installed. You must install peer dependencies yourself. npm WARN postcss-color-functional-notation@4.1.0 requires a peer of postcss@^8.3 but none is installed. You must install peer dependencies yourself. npm WARN postcss-color-hex-alpha@8.0.1 requires a peer of postcss@^8.3 but none is installed. You must install peer dependencies yourself. npm WARN postcss-color-rebeccapurple@7.0.1 requires a peer of postcss@^8.3 but none is installed. You must install peer dependencies yourself. npm WARN postcss-custom-properties@12.0.1 requires a peer of postcss@^8.3 but none is installed. You must install peer dependencies yourself. npm WARN postcss-dir-pseudo-class@6.0.1 requires a peer of postcss@^8.3 but none is installed. You must install peer dependencies yourself. npm WARN postcss-double-position-gradients@3.0.3 requires a peer of postcss@^8.3 but none is installed. You must install peer dependencies yourself. npm WARN postcss-env-function@4.0.3 requires a peer of postcss@^8.3 but none is installed. You must install peer dependencies yourself. npm WARN postcss-focus-visible@6.0.2 requires a peer of postcss@^8.3 but none is installed. You must install peer dependencies yourself. npm WARN postcss-focus-within@5.0.2 requires a peer of postcss@^8.3 but none is installed. You must install peer dependencies yourself. npm WARN postcss-gap-properties@3.0.1 requires a peer of postcss@^8.3 but none is installed. You must install peer dependencies yourself. npm WARN postcss-image-set-function@4.0.3 requires a peer of postcss@^8.3 but none is installed. You must install peer dependencies yourself. npm WARN postcss-lab-function@4.0.2 requires a peer of postcss@^8.3 but none is installed. You must install peer dependencies yourself. npm WARN postcss-logical@5.0.1 requires a peer of postcss@^8.3 but none is installed. You must install peer dependencies yourself. npm WARN postcss-momentum-scrolling@3.14.22 requires a peer of postcss@^8.3.6 but none is installed. You must install peer dependencies yourself. npm WARN postcss-nesting@10.0.3 requires a peer of postcss@^8.3 but none is installed. You must install peer dependencies yourself. npm WARN postcss-overflow-shorthand@3.0.1 requires a peer of postcss@^8.3 but none is installed. You must install peer dependencies yourself. npm WARN postcss-place@7.0.2 requires a peer of postcss@^8.3 but none is installed. You must install peer dependencies yourself. npm WARN postcss-preset-env@7.0.2 requires a peer of postcss@^8.3 but none is installed. You must install peer dependencies yourself. npm WARN postcss-pseudo-class-any-link@7.0.1 requires a peer of postcss@^8.3 but none is installed. You must install peer dependencies yourself. npm WARN terser-webpack-plugin@5.3.0 requires a peer of webpack@^5.1.0 but none is installed. You must install peer dependencies yourself. npm WARN workbox-webpack-plugin@6.4.2 requires a peer of webpack@^4.4.0 || ^5.9.0 but none is installed. You must install peer dependencies yourself. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @next/swc-android-arm64@12.0.7 (node_modules/@next/swc-android-arm64): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @next/swc-android-arm64@12.0.7: wanted {"os":"android","arch":"arm64"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @next/swc-linux-arm64-gnu@12.0.7 (node_modules/@next/swc-linux-arm64-gnu): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @next/swc-linux-arm64-gnu@12.0.7: wanted {"os":"linux","arch":"arm64"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @next/swc-darwin-arm64@12.0.7 (node_modules/@next/swc-darwin-arm64): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @next/swc-darwin-arm64@12.0.7: wanted {"os":"darwin","arch":"arm64"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @next/swc-linux-arm64-musl@12.0.7 (node_modules/@next/swc-linux-arm64-musl): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @next/swc-linux-arm64-musl@12.0.7: wanted {"os":"linux","arch":"arm64"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @next/swc-win32-ia32-msvc@12.0.7 (node_modules/@next/swc-win32-ia32-msvc): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @next/swc-win32-ia32-msvc@12.0.7: wanted {"os":"win32","arch":"ia32"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @next/swc-win32-arm64-msvc@12.0.7 (node_modules/@next/swc-win32-arm64-msvc): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @next/swc-win32-arm64-msvc@12.0.7: wanted {"os":"win32","arch":"arm64"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @next/swc-linux-arm-gnueabihf@12.0.7 (node_modules/@next/swc-linux-arm-gnueabihf): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @next/swc-linux-arm-gnueabihf@12.0.7: wanted {"os":"linux","arch":"arm"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @next/swc-darwin-x64@12.0.7 (node_modules/@next/swc-darwin-x64): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @next/swc-darwin-x64@12.0.7: wanted {"os":"darwin","arch":"x64"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @next/swc-win32-x64-msvc@12.0.7 (node_modules/@next/swc-win32-x64-msvc): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @next/swc-win32-x64-msvc@12.0.7: wanted {"os":"win32","arch":"x64"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: esbuild-android-64@0.14.38 (node_modules/esbuild-android-64): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for esbuild-android-64@0.14.38: wanted {"os":"android","arch":"x64"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: esbuild-android-arm64@0.14.38 (node_modules/esbuild-android-arm64): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for esbuild-android-arm64@0.14.38: wanted {"os":"android","arch":"arm64"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: esbuild-linux-mips64le@0.14.38 (node_modules/esbuild-linux-mips64le): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for esbuild-linux-mips64le@0.14.38: wanted {"os":"linux","arch":"mips64el"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: esbuild-darwin-64@0.14.38 (node_modules/esbuild-darwin-64): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for esbuild-darwin-64@0.14.38: wanted {"os":"darwin","arch":"x64"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: esbuild-darwin-arm64@0.14.38 (node_modules/esbuild-darwin-arm64): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for esbuild-darwin-arm64@0.14.38: wanted {"os":"darwin","arch":"arm64"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: esbuild-freebsd-64@0.14.38 (node_modules/esbuild-freebsd-64): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for esbuild-freebsd-64@0.14.38: wanted {"os":"freebsd","arch":"x64"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: esbuild-linux-32@0.14.38 (node_modules/esbuild-linux-32): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for esbuild-linux-32@0.14.38: wanted {"os":"linux","arch":"ia32"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: esbuild-freebsd-arm64@0.14.38 (node_modules/esbuild-freebsd-arm64): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for esbuild-freebsd-arm64@0.14.38: wanted {"os":"freebsd","arch":"arm64"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: esbuild-linux-ppc64le@0.14.38 (node_modules/esbuild-linux-ppc64le): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for esbuild-linux-ppc64le@0.14.38: wanted {"os":"linux","arch":"ppc64"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: esbuild-linux-arm@0.14.38 (node_modules/esbuild-linux-arm): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for esbuild-linux-arm@0.14.38: wanted {"os":"linux","arch":"arm"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: esbuild-linux-arm64@0.14.38 (node_modules/esbuild-linux-arm64): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for esbuild-linux-arm64@0.14.38: wanted {"os":"linux","arch":"arm64"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: esbuild-netbsd-64@0.14.38 (node_modules/esbuild-netbsd-64): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for esbuild-netbsd-64@0.14.38: wanted {"os":"netbsd","arch":"x64"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: esbuild-linux-riscv64@0.14.38 (node_modules/esbuild-linux-riscv64): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for esbuild-linux-riscv64@0.14.38: wanted {"os":"linux","arch":"riscv64"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: esbuild-sunos-64@0.14.38 (node_modules/esbuild-sunos-64): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for esbuild-sunos-64@0.14.38: wanted {"os":"sunos","arch":"x64"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: esbuild-linux-s390x@0.14.38 (node_modules/esbuild-linux-s390x): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for esbuild-linux-s390x@0.14.38: wanted {"os":"linux","arch":"s390x"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: esbuild-windows-32@0.14.38 (node_modules/esbuild-windows-32): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for esbuild-windows-32@0.14.38: wanted {"os":"win32","arch":"ia32"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: esbuild-openbsd-64@0.14.38 (node_modules/esbuild-openbsd-64): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for esbuild-openbsd-64@0.14.38: wanted {"os":"openbsd","arch":"x64"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: esbuild-windows-arm64@0.14.38 (node_modules/esbuild-windows-arm64): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for esbuild-windows-arm64@0.14.38: wanted {"os":"win32","arch":"arm64"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: esbuild-windows-64@0.14.38 (node_modules/esbuild-windows-64): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for esbuild-windows-64@0.14.38: wanted {"os":"win32","arch":"x64"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/glob-watcher/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! sharp@0.30.1 install: `(node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the sharp@0.30.1 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2022-05-19T11_07_55_718Z-debug.log ``` The output of running `npm install --verbose --foreground-scripts sharp` ```sh sharp@0.30.4 install /home/jenkins/agent/workspace/wholee-m_feature_dayu/node_modules/sharp > (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy) sharp: Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.12.2/libvips-8.12.2-linux-x64.tar.br sharp: Installation error: Download incomplete (connection was terminated) sharp: Please see https://sharp.pixelplumbing.com/install for required dependencies npm verb lifecycle sharp@0.30.4~install: unsafe-perm in lifecycle false npm verb lifecycle sharp@0.30.4~install: PATH: /root/.nvm/versions/node/v14.19.3/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/jenkins/agent/workspace/wholee-m_feature_dayu/node_modules/sharp/node_modules/.bin:/home/jenkins/agent/workspace/wholee-m_feature_dayu/node_modules/.bin:/root/.nvm/versions/node/v14.19.3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin npm verb lifecycle sharp@0.30.4~install: CWD: /home/jenkins/agent/workspace/wholee-m_feature_dayu/node_modules/sharp npm info lifecycle sharp@0.30.4~install: Failed to exec install script npm timing action:install Completed in 403683ms npm verb unlock done using /root/.npm/_locks/staging-da72583394bcbc53.lock for /home/jenkins/agent/workspace/wholee-m_feature_dayu/node_modules/.staging npm timing stage:rollbackFailedOptional Completed in 2886ms npm timing stage:runTopLevelLifecycles Completed in 464854ms npm WARN @apideck/better-ajv-errors@0.3.1 requires a peer of ajv@>=8 but none is installed. You must install peer dependencies yourself. npm WARN @fe/fe-i18n@1.2.7 requires a peer of react@^16.0.0 but none is installed. You must install peer dependencies yourself. npm WARN @fe/fe-i18n@1.2.7 requires a peer of react-dom@^16.0.0 but none is installed. You must install peer dependencies yourself. npm WARN @testing-library/react@13.1.1 requires a peer of react@^18.0.0 but none is installed. You must install peer dependencies yourself. npm WARN @testing-library/react@13.1.1 requires a peer of react-dom@^18.0.0 but none is installed. You must install peer dependencies yourself. npm WARN babel-loader@8.2.3 requires a peer of webpack@>=2 but none is installed. You must install peer dependencies yourself. npm WARN clean-webpack-plugin@4.0.0 requires a peer of webpack@>=4.0.0 <6.0.0 but none is installed. You must install peer dependencies yourself. npm WARN css-blank-pseudo@3.0.0 requires a peer of postcss@^8.3 but none is installed. You must install peer dependencies yourself. npm WARN css-has-pseudo@3.0.0 requires a peer of postcss@^8.3 but none is installed. You must install peer dependencies yourself. npm WARN css-prefers-color-scheme@6.0.0 requires a peer of postcss@^8.3 but none is installed. You must install peer dependencies yourself. npm WARN less-loader@10.2.0 requires a peer of webpack@^5.0.0 but none is installed. You must install peer dependencies yourself. npm WARN postcss-color-functional-notation@4.1.0 requires a peer of postcss@^8.3 but none is installed. You must install peer dependencies yourself. npm WARN postcss-color-hex-alpha@8.0.1 requires a peer of postcss@^8.3 but none is installed. You must install peer dependencies yourself. npm WARN postcss-color-rebeccapurple@7.0.1 requires a peer of postcss@^8.3 but none is installed. You must install peer dependencies yourself. npm WARN postcss-custom-properties@12.0.1 requires a peer of postcss@^8.3 but none is installed. You must install peer dependencies yourself. npm WARN postcss-dir-pseudo-class@6.0.1 requires a peer of postcss@^8.3 but none is installed. You must install peer dependencies yourself. npm WARN postcss-double-position-gradients@3.0.3 requires a peer of postcss@^8.3 but none is installed. You must install peer dependencies yourself. npm WARN postcss-env-function@4.0.3 requires a peer of postcss@^8.3 but none is installed. You must install peer dependencies yourself. npm WARN postcss-focus-visible@6.0.2 requires a peer of postcss@^8.3 but none is installed. You must install peer dependencies yourself. npm WARN postcss-focus-within@5.0.2 requires a peer of postcss@^8.3 but none is installed. You must install peer dependencies yourself. npm WARN postcss-gap-properties@3.0.1 requires a peer of postcss@^8.3 but none is installed. You must install peer dependencies yourself. npm WARN postcss-image-set-function@4.0.3 requires a peer of postcss@^8.3 but none is installed. You must install peer dependencies yourself. npm WARN postcss-lab-function@4.0.2 requires a peer of postcss@^8.3 but none is installed. You must install peer dependencies yourself. npm WARN postcss-logical@5.0.1 requires a peer of postcss@^8.3 but none is installed. You must install peer dependencies yourself. npm WARN postcss-momentum-scrolling@3.14.22 requires a peer of postcss@^8.3.6 but none is installed. You must install peer dependencies yourself. npm WARN postcss-nesting@10.0.3 requires a peer of postcss@^8.3 but none is installed. You must install peer dependencies yourself. npm WARN postcss-overflow-shorthand@3.0.1 requires a peer of postcss@^8.3 but none is installed. You must install peer dependencies yourself. npm WARN postcss-place@7.0.2 requires a peer of postcss@^8.3 but none is installed. You must install peer dependencies yourself. npm WARN postcss-preset-env@7.0.2 requires a peer of postcss@^8.3 but none is installed. You must install peer dependencies yourself. npm WARN postcss-pseudo-class-any-link@7.0.1 requires a peer of postcss@^8.3 but none is installed. You must install peer dependencies yourself. npm WARN terser-webpack-plugin@5.3.0 requires a peer of webpack@^5.1.0 but none is installed. You must install peer dependencies yourself. npm WARN workbox-webpack-plugin@6.4.2 requires a peer of webpack@^4.4.0 || ^5.9.0 but none is installed. You must install peer dependencies yourself. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @next/swc-darwin-arm64@12.0.7 (node_modules/@next/swc-darwin-arm64): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @next/swc-darwin-arm64@12.0.7: wanted {"os":"darwin","arch":"arm64"} (current: {"os":"linux","arch":"x64"}) npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS: darwin npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch: arm64 npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS: linux npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @next/swc-darwin-x64@12.0.7 (node_modules/@next/swc-darwin-x64): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @next/swc-darwin-x64@12.0.7: wanted {"os":"darwin","arch":"x64"} (current: {"os":"linux","arch":"x64"}) npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS: darwin npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch: x64 npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS: linux npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @next/swc-android-arm64@12.0.7 (node_modules/@next/swc-android-arm64): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @next/swc-android-arm64@12.0.7: wanted {"os":"android","arch":"arm64"} (current: {"os":"linux","arch":"x64"}) npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS: android npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch: arm64 npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS: linux npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @next/swc-linux-arm64-gnu@12.0.7 (node_modules/@next/swc-linux-arm64-gnu): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @next/swc-linux-arm64-gnu@12.0.7: wanted {"os":"linux","arch":"arm64"} (current: {"os":"linux","arch":"x64"}) npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS: linux npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch: arm64 npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS: linux npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @next/swc-linux-arm-gnueabihf@12.0.7 (node_modules/@next/swc-linux-arm-gnueabihf): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @next/swc-linux-arm-gnueabihf@12.0.7: wanted {"os":"linux","arch":"arm"} (current: {"os":"linux","arch":"x64"}) npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS: linux npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch: arm npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS: linux npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @next/swc-win32-ia32-msvc@12.0.7 (node_modules/@next/swc-win32-ia32-msvc): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @next/swc-win32-ia32-msvc@12.0.7: wanted {"os":"win32","arch":"ia32"} (current: {"os":"linux","arch":"x64"}) npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS: win32 npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch: ia32 npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS: linux npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @next/swc-win32-arm64-msvc@12.0.7 (node_modules/@next/swc-win32-arm64-msvc): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @next/swc-win32-arm64-msvc@12.0.7: wanted {"os":"win32","arch":"arm64"} (current: {"os":"linux","arch":"x64"}) npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS: win32 npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch: arm64 npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS: linux npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @next/swc-win32-x64-msvc@12.0.7 (node_modules/@next/swc-win32-x64-msvc): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @next/swc-win32-x64-msvc@12.0.7: wanted {"os":"win32","arch":"x64"} (current: {"os":"linux","arch":"x64"}) npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS: win32 npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch: x64 npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS: linux npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @next/swc-linux-arm64-musl@12.0.7 (node_modules/@next/swc-linux-arm64-musl): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @next/swc-linux-arm64-musl@12.0.7: wanted {"os":"linux","arch":"arm64"} (current: {"os":"linux","arch":"x64"}) npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS: linux npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch: arm64 npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS: linux npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: esbuild-android-64@0.14.38 (node_modules/esbuild-android-64): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for esbuild-android-64@0.14.38: wanted {"os":"android","arch":"x64"} (current: {"os":"linux","arch":"x64"}) npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS: android npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch: x64 npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS: linux npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: esbuild-android-arm64@0.14.38 (node_modules/esbuild-android-arm64): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for esbuild-android-arm64@0.14.38: wanted {"os":"android","arch":"arm64"} (current: {"os":"linux","arch":"x64"}) npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS: android npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch: arm64 npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS: linux npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: esbuild-darwin-arm64@0.14.38 (node_modules/esbuild-darwin-arm64): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for esbuild-darwin-arm64@0.14.38: wanted {"os":"darwin","arch":"arm64"} (current: {"os":"linux","arch":"x64"}) npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS: darwin npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch: arm64 npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS: linux npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: esbuild-darwin-64@0.14.38 (node_modules/esbuild-darwin-64): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for esbuild-darwin-64@0.14.38: wanted {"os":"darwin","arch":"x64"} (current: {"os":"linux","arch":"x64"}) npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS: darwin npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch: x64 npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS: linux npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: esbuild-freebsd-64@0.14.38 (node_modules/esbuild-freebsd-64): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for esbuild-freebsd-64@0.14.38: wanted {"os":"freebsd","arch":"x64"} (current: {"os":"linux","arch":"x64"}) npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS: freebsd npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch: x64 npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS: linux npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: esbuild-freebsd-arm64@0.14.38 (node_modules/esbuild-freebsd-arm64): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for esbuild-freebsd-arm64@0.14.38: wanted {"os":"freebsd","arch":"arm64"} (current: {"os":"linux","arch":"x64"}) npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS: freebsd npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch: arm64 npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS: linux npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: esbuild-linux-arm64@0.14.38 (node_modules/esbuild-linux-arm64): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for esbuild-linux-arm64@0.14.38: wanted {"os":"linux","arch":"arm64"} (current: {"os":"linux","arch":"x64"}) npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS: linux npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch: arm64 npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS: linux npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: esbuild-linux-32@0.14.38 (node_modules/esbuild-linux-32): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for esbuild-linux-32@0.14.38: wanted {"os":"linux","arch":"ia32"} (current: {"os":"linux","arch":"x64"}) npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS: linux npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch: ia32 npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS: linux npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: esbuild-linux-riscv64@0.14.38 (node_modules/esbuild-linux-riscv64): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for esbuild-linux-riscv64@0.14.38: wanted {"os":"linux","arch":"riscv64"} (current: {"os":"linux","arch":"x64"}) npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS: linux npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch: riscv64 npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS: linux npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: esbuild-linux-arm@0.14.38 (node_modules/esbuild-linux-arm): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for esbuild-linux-arm@0.14.38: wanted {"os":"linux","arch":"arm"} (current: {"os":"linux","arch":"x64"}) npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS: linux npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch: arm npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS: linux npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: esbuild-openbsd-64@0.14.38 (node_modules/esbuild-openbsd-64): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for esbuild-openbsd-64@0.14.38: wanted {"os":"openbsd","arch":"x64"} (current: {"os":"linux","arch":"x64"}) npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS: openbsd npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch: x64 npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS: linux npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: esbuild-linux-ppc64le@0.14.38 (node_modules/esbuild-linux-ppc64le): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for esbuild-linux-ppc64le@0.14.38: wanted {"os":"linux","arch":"ppc64"} (current: {"os":"linux","arch":"x64"}) npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS: linux npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch: ppc64 npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS: linux npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: esbuild-linux-mips64le@0.14.38 (node_modules/esbuild-linux-mips64le): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for esbuild-linux-mips64le@0.14.38: wanted {"os":"linux","arch":"mips64el"} (current: {"os":"linux","arch":"x64"}) npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS: linux npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch: mips64el npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS: linux npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: esbuild-sunos-64@0.14.38 (node_modules/esbuild-sunos-64): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for esbuild-sunos-64@0.14.38: wanted {"os":"sunos","arch":"x64"} (current: {"os":"linux","arch":"x64"}) npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS: sunos npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch: x64 npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS: linux npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: esbuild-netbsd-64@0.14.38 (node_modules/esbuild-netbsd-64): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for esbuild-netbsd-64@0.14.38: wanted {"os":"netbsd","arch":"x64"} (current: {"os":"linux","arch":"x64"}) npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS: netbsd npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch: x64 npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS: linux npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: esbuild-linux-s390x@0.14.38 (node_modules/esbuild-linux-s390x): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for esbuild-linux-s390x@0.14.38: wanted {"os":"linux","arch":"s390x"} (current: {"os":"linux","arch":"x64"}) npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS: linux npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch: s390x npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS: linux npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: esbuild-windows-arm64@0.14.38 (node_modules/esbuild-windows-arm64): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for esbuild-windows-arm64@0.14.38: wanted {"os":"win32","arch":"arm64"} (current: {"os":"linux","arch":"x64"}) npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS: win32 npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch: arm64 npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS: linux npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: esbuild-windows-32@0.14.38 (node_modules/esbuild-windows-32): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for esbuild-windows-32@0.14.38: wanted {"os":"win32","arch":"ia32"} (current: {"os":"linux","arch":"x64"}) npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS: win32 npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch: ia32 npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS: linux npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: esbuild-windows-64@0.14.38 (node_modules/esbuild-windows-64): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for esbuild-windows-64@0.14.38: wanted {"os":"win32","arch":"x64"} (current: {"os":"linux","arch":"x64"}) npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS: win32 npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch: x64 npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS: linux npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS: darwin npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch: any npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS: linux npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/glob-watcher/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS: darwin npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch: any npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS: linux npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64 npm verb stack Error: sharp@0.30.4 install: `(node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)` npm verb stack Exit status 1 npm verb stack at EventEmitter. (/root/.nvm/versions/node/v14.19.3/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16) npm verb stack at EventEmitter.emit (events.js:400:28) npm verb stack at ChildProcess. (/root/.nvm/versions/node/v14.19.3/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14) npm verb stack at ChildProcess.emit (events.js:400:28) npm verb stack at maybeClose (internal/child_process.js:1088:16) npm verb stack at Process.ChildProcess._handle.onexit (internal/child_process.js:296:5) npm verb pkgid sharp@0.30.4 npm verb cwd /home/jenkins/agent/workspace/wholee-m_feature_dayu npm verb Linux 5.4.172-90.336.amzn2.x86_64 npm verb argv "/root/.nvm/versions/node/v14.19.3/bin/node" "/root/.nvm/versions/node/v14.19.3/bin/npm" "install" "--verbose" "--foreground-scripts" "sharp" npm verb node v14.19.3 npm verb npm v6.14.17 npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! sharp@0.30.4 install: `(node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the sharp@0.30.4 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm verb exit [ 1, true ] npm timing npm Completed in 467840ms npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2022-05-19T11_25_34_824Z-debug.log ```

What is the output of running npx envinfo --binaries --system --npmPackages=sharp --npmGlobalPackages=sharp?

npx: installed 1 in 2.114s

  System:
    OS: Linux 5.4 Ubuntu 18.04.6 LTS (Bionic Beaver)
    CPU: (4) x64 Intel(R) Xeon(R) Platinum 8175M CPU @ 2.50GHz
    Memory: 4.55 GB / 15.46 GB
    Container: Yes
    Shell: 4.4.20 - /bin/bash
  Binaries:
    Node: 14.19.3 - ~/.nvm/versions/node/v14.19.3/bin/node
    npm: 8.3.2 - /home/jenkins/agent/workspace/wholee-m_feature_dayu/node_modules/.bin/npm
lovell commented 2 years ago

Hi, the salient part of the first log you've provided is:

sharp: Installation error: EPERM: operation not permitted, lchown '/home/jenkins/agent/workspace/wholee-m_feature_dayu/node_modules/sharp/vendor/8.12.2/linux-x64/lib'

This suggests you're trying to use sudo and may have run into one of the npm v8 "features" around filesystem ownership, which is causing quite a lot of backscatter - see https://github.com/npm/rfcs/issues/546

The second log says:

sharp: Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.12.2/libvips-8.12.2-linux-x64.tar.br sharp: Installation error: Download incomplete (connection was terminated)

This suggests there were networking problems, perhaps temporary, during installation.

samsullivan commented 2 years ago

Just wanted to add a note that I had an intermittent failure installing the libvips tarball that prevented npm install sharp from succeeding. The message was a bit different from OP (no explicit permission or terminated connection errors, just an invalid tarball when trying to extract).

Retrying the build worked fine for me.

lovell commented 2 years ago

@daicheng123 Were you able to make any progress with this?

lovell commented 2 years ago

Closing due to inactivity but please feel free to reopen with more details if further help is required.

stuartcornes commented 1 year ago

i've been having issues trying to install sharp also, This is the issue i'm getting:

npm ERR! code 1 npm ERR! path C:\inetpub\wwwroot\snowform\node_modules\sharp npm ERR! command failed npm ERR! command C:\Windows\system32\cmd.exe /d /s /c (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy) npm ERR! sharp: Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.13.3/libvips-8.13.3-win32-x64.tar.br npm ERR! sharp: Please see https://sharp.pixelplumbing.com/install for required dependencies npm ERR! sharp: Installation error: tunneling socket could not be established, statusCode=400

lovell commented 1 year ago

@stuartcornes "tunneling socket could not be established" suggests there's a misconfigured proxy, e.g. HTTPS vs HTTP etc.

https://github.com/lovell/sharp/search?q=%22tunneling+socket+could+not+be+established%22&type=issues

Please open a new installation issue if further help is required.