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

npx+quasar+electron-builder = bad news #16228

Closed
rotu opened this issue Aug 21, 2023 · 3 comments
Closed

npx+quasar+electron-builder = bad news #16228

rotu opened this issue Aug 21, 2023 · 3 comments

Comments

@rotu
Copy link
Contributor

rotu commented Aug 21, 2023

Description

There is a recommendation to run quasar under npx but this causes the build process to hang if there are native dependencies to rebuild:

electron-userland/electron-builder#6411

I'm not sure whether this needs a fix/workaround in Quasar but it deserves at least a warning.

Documentation Section URL

https://quasar.dev/start/quasar-cli#running-without-the-global-quasar-cli

Flavour

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

Areas

Quasar CLI Commands/Configuration (@quasar/cli | @quasar/app-webpack | @quasar/app-vite), Electron Mode

@rotu
Copy link
Contributor Author

rotu commented Sep 9, 2023

Root cause npm/cli#6662 is now fixed in npm@10.1.0!

@rstoenescu
Copy link
Member

Closing since it's not a Quasar CLI issue, but an npm one.
Please comment if I am missing anything.

@rotu
Copy link
Contributor Author

rotu commented Sep 11, 2023

@rstoenescu Yes, it's an npm issue that impacts Quasar. As with most software issues, the bug is easy to trip over without knowing the root cause or that it's a bug and not user error.

I added it here because I thought it might merit either:

  1. A word in the documentation which currently mentions running Quasar under npx.
  2. A workaround e.g. by fixing up the environment variable $npm_execpath if pointing to something other than an instance of npm or yarn.
  3. A contextual warning if the user is running quasar build and npm is <10.1

I trust your judgement in whatever is most in line with Quasar CLI's DX philosophy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants