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

fix: remove npm from install script #205

Merged
merged 1 commit into from
Feb 23, 2024
Merged

fix: remove npm from install script #205

merged 1 commit into from
Feb 23, 2024

Conversation

styfle
Copy link
Contributor

@styfle styfle commented Feb 9, 2024

The install script will fail when using a package manager other than npm (such as yarn or pnpm) through corepack.

Usage Error: This project is configured to use pnpm

It will also fail in the case when npm is not installed at all.

zsh: command not found: npm

This change should also be a tiny bit faster since it invokes node-gyp directly instead of relying on npm to invoke it.

The `install` script will fail when using a package manager other than npm (such as yarn or pnpm) either through corepack or the scenario when npm is not installed at all.
@uhop uhop self-assigned this Feb 10, 2024
@mshick
Copy link

mshick commented Feb 22, 2024

I'm encountering this issue. Same situation as OP, corepack-enabled pnpm. Would love to see this merged.

@styfle
Copy link
Contributor Author

styfle commented Feb 22, 2024

@uhop Can you take a look when you have a moment? Thanks!

@uhop
Copy link
Owner

uhop commented Feb 23, 2024

I want to release the latest three patches together. That's why a holdup.

@uhop uhop merged commit b8c0225 into uhop:master Feb 23, 2024
9 checks passed
@styfle styfle deleted the patch-1 branch February 23, 2024 20:47
@uhop
Copy link
Owner

uhop commented Mar 3, 2024

Published as 1.20.10.

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

Successfully merging this pull request may close these issues.

None yet

3 participants