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 install error: node-waf: command not found (due to zlib dependency) #17157

Closed
amc1999 opened this issue May 2, 2024 · 2 comments
Closed
Labels

Comments

@amc1999
Copy link

amc1999 commented May 2, 2024

What happened?

Npm install failed on freshly created Quasar v1 CLI project due to package.json dependencies zlib 1.0.5 at line 121.

npm error path ........\quasar-project\node_modules\zlib
npm error command C:\WINDOWS\system32\cmd.exe /d /s /c node-waf clean || true; node-waf configure build
npm error 'node-waf' is not recognized as an internal or external command,

That issue was already fixed at least once, merged in by rstoenescu, on July 5, 2021 refactor(app): Remove deprecated zlib package to use from Node.js core (fix: #9942) #9951

To fix it again we need to remove "zlib": "1.0.5" on line 121 of package.json

Do you want PR for that?

What did you expect to happen?

npm install OK

URL below is not a Reproduction URL which required by GitHub bot.
It is a fork with issue fix and PR.
I don't know how reproduce npm install error using Codepen, jsFiddle, etc.

Reproduction URL

https://github.com/amc1999/quasar

How to reproduce?

Reproducible at last stable node v20.12.x or higher, tested today using node v22.1.0

npm install -g @quasar/cli
npm init quasar
cd quasar-project
npm install

Flavour

Quasar CLI (@quasar/cli | @quasar/app)

Areas

Quasar CLI Commands/Configuration (@quasar/cli | @quasar/app)

Platforms/Browsers

No response

Quasar info output

No response

Relevant log output

npm error code 1
npm error path ........quasar-project\node_modules\zlib
npm error command failed
npm error command C:\WINDOWS\system32\cmd.exe /d /s /c node-waf clean || true; node-waf configure build
npm error 'node-waf' is not recognized as an internal or external command,
Copy link

github-actions bot commented May 2, 2024

Hi @amc1999! 👋

It looks like you provided an invalid or unsupported reproduction URL.
Do not use any service other than Codepen, jsFiddle, StackBlitz, Codesandbox, and GitHub.
Make sure the URL you provided is correct and reachable. You can test it by visiting it in a private tab, another device, etc.
Please edit your original post above and provide a valid reproduction URL as explained.

Without a proper reproduction, your issue will have to get closed.

Thank you for your collaboration. 👏

rstoenescu pushed a commit that referenced this issue May 6, 2024
@rstoenescu
Copy link
Member

Hi,

Thank you for also providing a PR, however:

  • Quasar v1 is out of support for a long time now.
  • The fix that you mentioned was meant for Quasar v2 projects. The v1 q/app was never fixed because it is out of support.

However, since you took the effort to provide a PR, I did a quick release for it (@quasar/app v2.4.4)

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

No branches or pull requests

2 participants