Open prathabanKavin opened 4 months ago
Known issue, this will go away as soon as we remove sharp
from devDependencies
.
@SutuSebastian dependency tree shows a like
flowbite-react@0.7.2
<- markdown-toc@1.2.0
<- gray-matter@2.1.1
<- coffee-script@1.12.7
gray-matter here is bit older version from 2017. This issue is fixed on their end https://github.com/jonschlinkert/gray-matter/pull/57.
Seems there is need for gray-matter
version bump here.
Is there a way i can use flowbite-react until this gets fixed?
It looks like its failing because of sharp
, the coffee-script
is just a npm WARN
.
Can u try: npm install --no-optional
?
Steps to reproduce
Current behavior
flowbite-react is not getting installed.
Context
Here is the error log:
npm WARN deprecated gulp-header@1.8.12: Removed event-stream from gulp-header npm WARN deprecated coffee-script@1.12.7: CoffeeScript on NPM has moved to "coffeescript" (no hyphen) npm ERR! code 1 npm ERR! path /home/kavin/JSProjects/MERNAuth/frontend/node_modules/flowbite-react/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: Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.14.5/libvips-8.14.5-linux-x64.tar.br npm ERR! sharp: Please see https://sharp.pixelplumbing.com/install for required dependencies npm ERR! sharp: Installation error: aborted npm ERR! A complete log of this run can be found in: /home/kavin/.npm/_logs/2024-02-29T13_23_10_397Z-debug-0.log
Tried the following: