Code Monkey home page Code Monkey logo

Comments (7)

puxiao avatar puxiao commented on June 10, 2024 15

@ryanwalters

This is the solution:

npm install sharp
npm install --force @img/sharp-win32-x64

from sharp.

lovell avatar lovell commented on June 10, 2024 2

@puxiao Using npm --force ... is a workaround rather than a solution. If you're experiencing npm/cli#4828 then it's really important to add your 👍 to that issue to help improve visibility and increase the chance of it getting fixed.

from sharp.

ryanwalters avatar ryanwalters commented on June 10, 2024 1

It looks like you're using multiple platforms with npm - have you definitely ruled out npm/cli#4828 ?

After a bit more investigation, I do believe it is the same issue as npm/cli#4828. The good news is that I was able to come up with a command that appears to work in CI:

- run:
    name: Install dependencies
    command: |
      npm install --force --os=linux --cpu=x64 sharp
      npm install --force @img/sharp-linux-x64

Thanks!

from sharp.

lovell avatar lovell commented on June 10, 2024

It looks like you're using multiple platforms with npm - have you definitely ruled out npm/cli#4828 ?

from sharp.

metenev avatar metenev commented on June 10, 2024

@ryanwalters

This is the solution:

npm install sharp
npm install --force @img/sharp-win32-x64

For yarn you should also add --ignore-engines option.

from sharp.

lovell avatar lovell commented on June 10, 2024

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

from sharp.

NoobMahbub avatar NoobMahbub commented on June 10, 2024
  1. Update your package manager

npm install -g npm@latest

  1. Clear the cache

npm cache clean -f

  1. Then Terminate batch job and run again

npm run dev

or

npm run start

from sharp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.