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

Failed to install on MacBook M1 #19

Open
Grawl opened this issue Jul 14, 2023 · 0 comments
Open

Failed to install on MacBook M1 #19

Grawl opened this issue Jul 14, 2023 · 0 comments

Comments

@Grawl
Copy link

Grawl commented Jul 14, 2023

  • MacBook M1
  • Node 18.16.0
❯ npm add @pwa/manifest-icons
npm ERR! code 1
npm ERR! path /Users/daniilpronin/FEIP/feip-dev-next-js/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! gyp ERR! not ok

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/daniilpronin/.npm/_logs/2023-07-14T01_25_14_536Z-debug-0.log

I checked next-manifest dependencies and tried to install each separately:

❯ npm add @pwa/manifest           

added 53 packages, removed 51 packages, and audited 1175 packages in 2s

❯ npm add @pwa/manifest-icons             
npm ERR! code 1

…

Error caused by old sharp version from @pwa/manifest-icons.

We can fix it by NPM overrides:

"overrides": {
    "@pwa/manifest-icons": {
      "sharp": "^0.32.2"
    }
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant