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

Cannot install icongenie #17459

Open
vanngoh opened this issue Aug 25, 2024 · 3 comments
Open

Cannot install icongenie #17459

vanngoh opened this issue Aug 25, 2024 · 3 comments
Labels
area/icongenie bug/1-repro-available A reproduction is available and needs to be confirmed. flavour/quasar-cli-vite kind/bug 🐞 Qv2 🔝 Quasar v2 issues

Comments

@vanngoh
Copy link

vanngoh commented Aug 25, 2024

What happened?

First of all, I truly love the UX provided by icongenie, that's really genius!
But currently I encounter the following error when I run the npm i -g @quasar/icongenie on my new Macbook Air(M3 chip).

npm WARN deprecated [email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm WARN deprecated @hapi/[email protected]: Moved to 'npm install @sideway/formula'
npm WARN deprecated @hapi/[email protected]: Moved to 'npm install @sideway/address'
npm WARN deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated @hapi/[email protected]: Switch to 'npm install joi'
npm ERR! code 1
npm ERR! path /Users/xxx/.nvm/versions/node/v20.12.2/lib/node_modules/@quasar/icongenie/node_modules/pngquant-bin
npm ERR! command failed
npm ERR! command sh -c node lib/install.js
npm ERR! compiling from source
npm ERR! spawn Unknown system error -86
npm ERR! pngquant pre-build test failed
npm ERR! Error: pngquant failed to build, make sure that libpng is installed
npm ERR!     at /Users/xxx/.nvm/versions/node/v20.12.2/lib/node_modules/@quasar/icongenie/node_modules/bin-build/node_modules/execa/index.js:231:11
npm ERR!     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
npm ERR!     at async Promise.all (index 0)

What did you expect to happen?

icongenie should be downloaded successfully but now it's not.

Reproduction URL

https://codepen.io/rstoenescu/pen/xxEvBLR?editors=1111

How to reproduce?

  1. Open Terminal
  2. Run node -v (make sure it's stable version)
  3. Run npm -v (make sure it's >10.0.0)
  4. Run npm i -g @quasar/icongenie (ERROR)

Flavour

Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)

Areas

Icon Genie CLI (@quasar/icongenie)

Platforms/Browsers

No response

Quasar info output

Operating System - Darwin(23.4.0) - darwin/arm64
NodeJs - 20.12.2

Global packages
  NPM - 10.5.0
  yarn - 1.22.22
  @quasar/cli - 2.4.0
  @quasar/icongenie - Not installed
  cordova - Not installed

Important local packages
  quasar - 2.16.9 -- Build high-performance VueJS user interfaces (SPA, PWA, SSR, Mobile and Desktop) in record time
  @quasar/app-vite - 1.9.5 -- Quasar Framework App CLI with Vite
  @quasar/extras - 1.16.12 -- Quasar Framework fonts, icons and animations
  eslint-plugin-quasar - Not installed
  vue - 3.4.38 -- The progressive JavaScript framework for building modern web UI.
  vue-router - 4.4.3
  pinia - 2.2.2 -- Intuitive, type safe and flexible Store for Vue
  vuex - Not installed
  vite - 2.9.18 -- Native-ESM powered web dev build tool
  eslint - Not installed
  electron - Not installed
  electron-packager - Not installed
  @electron/packager - Not installed
  electron-builder - Not installed
  register-service-worker - 1.7.2 -- Script for registering service worker, with hooks
  @capacitor/core - Not installed
  @capacitor/cli - Not installed
  @capacitor/android - Not installed
  @capacitor/ios - Not installed

Quasar App Extensions
  *None installed*

Relevant log output

npm WARN deprecated [email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm WARN deprecated @hapi/[email protected]: Moved to 'npm install @sideway/formula'
npm WARN deprecated @hapi/[email protected]: Moved to 'npm install @sideway/address'
npm WARN deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated @hapi/[email protected]: Switch to 'npm install joi'
npm ERR! code 1
npm ERR! path /Users/xxx/.nvm/versions/node/v20.12.2/lib/node_modules/@quasar/icongenie/node_modules/pngquant-bin
npm ERR! command failed
npm ERR! command sh -c node lib/install.js
npm ERR! compiling from source
npm ERR! spawn Unknown system error -86
npm ERR! pngquant pre-build test failed
npm ERR! Error: pngquant failed to build, make sure that libpng is installed
npm ERR!     at /Users/xxx/.nvm/versions/node/v20.12.2/lib/node_modules/@quasar/icongenie/node_modules/bin-build/node_modules/execa/index.js:231:11
npm ERR!     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
npm ERR!     at async Promise.all (index 0)

Additional context

No response

@vanngoh vanngoh added kind/bug 🐞 Qv2 🔝 Quasar v2 issues labels Aug 25, 2024
@github-actions github-actions bot added area/icongenie bug/1-repro-available A reproduction is available and needs to be confirmed. flavour/quasar-cli-vite labels Aug 25, 2024
@yusufkandemir
Copy link
Member

Since you say it's a new device, I suspect you might not have installed the XCode command line tools, which contain various stuff ranging from tools like git to libraries like libpng.
Run the following command:

$ xcode-select --install

@vanngoh
Copy link
Author

vanngoh commented Aug 26, 2024

Thanks for your reply, but unfortunately I think I have already installed.

$ xcode-select --install
xcode-select: note: Command line tools are already installed. Use "Software Update" in System Settings or the softwareupdate command line interface to install updates

@yusufkandemir
Copy link
Member

Then, please install libpng to your system. If you are using Homebrew, you can use brew install libpng. If that works, we will update the documentation accordingly. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/icongenie bug/1-repro-available A reproduction is available and needs to be confirmed. flavour/quasar-cli-vite kind/bug 🐞 Qv2 🔝 Quasar v2 issues
Projects
None yet
Development

No branches or pull requests

2 participants