Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm deprecated [email protected]: CoffeeScript on NPM has moved to "coffeescript" (no hyphen) #1288

Open
2 tasks done
prathabanKavin opened this issue Mar 6, 2024 · 4 comments
Labels
🐛 bug Something isn't working confirmed This bug was confirmed

Comments

@prathabanKavin
Copy link

prathabanKavin commented Mar 6, 2024

  • I have searched the Issues to see if this bug has already been reported
  • I have tested the latest version

Steps to reproduce

  1. Try installing npm i flowbite-react
  2. Followed the steps in 'https://www.flowbite-react.com/docs/getting-started/introduction'

Current behavior

flowbite-react is not getting installed.

Context

Here is the error log:
npm WARN deprecated [email protected]: Removed event-stream from gulp-header npm WARN deprecated [email protected]: 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:

  1. updated npm. Have the latest npm npm install -g npm
  2. tried increasing time limit for the npm call NODE_NETWORK_TIMEOUT=600 npm install flowbite-react
  3. tried clearing npm cache clean and installing it again
  4. tried installing unsafe perm
@SutuSebastian
Copy link
Collaborator

Known issue, this will go away as soon as we remove sharp from devDependencies.

@SutuSebastian SutuSebastian added 🐛 bug Something isn't working confirmed This bug was confirmed labels Mar 6, 2024
@prathabanKavin
Copy link
Author

@SutuSebastian dependency tree shows a like
[email protected] <- [email protected] <- [email protected] <- [email protected]

gray-matter here is bit older version from 2017. This issue is fixed on their end jonschlinkert/gray-matter#57.
Seems there is need for gray-matter version bump here.

@prathabanKavin
Copy link
Author

Is there a way i can use flowbite-react until this gets fixed?

@SutuSebastian
Copy link
Collaborator

It looks like its failing because of sharp, the coffee-script is just a npm WARN.

Can u try: npm install --no-optional?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working confirmed This bug was confirmed
Projects
None yet
Development

No branches or pull requests

2 participants