satya
Wed Apr 03 2024
while doing npm install
or yarn install
we might run into this error mentioned below:
error /Users/<user>/project/node_modules/sharp: Command failed.
Exit code: 127
Command: (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
to fix this just do npm rebuild
& then run npm install
or yarn install
.
#sharp-error #npm #node