nestjs-multer-extended icon indicating copy to clipboard operation
nestjs-multer-extended copied to clipboard

Bump sharp dependency from from 0.26.0 to 0.28.3

Open CosminNechifor opened this issue 3 years ago • 2 comments

Currently the package doesn't work if you are using a Mac with an M1 chip because of the sharp package listed in the dependencies:

Part of the stack trace can be found bellow:

npm ERR! code 1
npm ERR! path /Users/cosminnechifor/Private/github/nestjs-multer-extended/node_modules/sharp
npm ERR! command failed
npm ERR! command sh -c (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)
npm ERR! CC(target) Release/obj.target/nothing/../node-addon-api/nothing.o
npm ERR!   LIBTOOL-STATIC Release/nothing.a
npm ERR!   TOUCH Release/obj.target/libvips-cpp.stamp
npm ERR!   CXX(target) Release/obj.target/sharp/src/common.o
npm ERR! info sharp Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.10.0/libvips-8.10.0-darwin-arm64v8.tar.br
npm ERR! ERR! sharp Prebuilt libvips 8.10.0 binaries are not yet available for darwin-arm64v8
npm ERR! info sharp Attempting to build from source via node-gyp but this may fail due to the above error
npm ERR! info sharp Please see https://sharp.pixelplumbing.com/install for required dependencies
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | darwin | arm64
npm ERR! gyp info find Python using Python version 3.8.2 found at "/Applications/Xcode.app/Contents/Developer/usr/bin/python3"

For this to be fixed, please upgrade the sharp dependency to at least v0.28.0. More details can be found here

CosminNechifor avatar Nov 17 '21 17:11 CosminNechifor

This library seems to be dead. Maybe there is another library out there? How did you solve your problem @CosminNechifor?

JustDoItSascha avatar Feb 16 '22 12:02 JustDoItSascha

This library seems to be dead. Maybe there is another library out there? How did you solve your problem @CosminNechifor?

Hey, I bumped the package and then I've published a version for myself. The version that I used can be found here: https://www.npmjs.com/package/@cosminnechifor/nestjs-multer-extended

Basically this solves it:

- "sharp": "^0.26.0"
+ "sharp": "^0.28.3"

CosminNechifor avatar Feb 16 '22 13:02 CosminNechifor