Skip to content
This repository was archived by the owner on Aug 3, 2023. It is now read-only.

npm package doesn't have a binary #1139

Closed
steveklabnik opened this issue Mar 12, 2020 · 3 comments
Closed

npm package doesn't have a binary #1139

steveklabnik opened this issue Mar 12, 2020 · 3 comments

Comments

@steveklabnik
Copy link
Contributor

💡 Feature request

It would be nice if the npm package registered a binary, rather than relying on a post-install hook to do the right thing.

Overview and problem statement

https://github.com/volta-cli/volta is an nvm-like tool.

> npm i -g wrangler
Volta error: Global package installs are not supported.

Use `volta install wrangler` to add a package to your toolchain (see `volta help install` for more info).

This makes sense, and I think is good overall. But:

> volta install wrangler
error: Package has no executables to install.

Please verify the requested package name.

I don't think this tool is super popular, but given that wrangler distributes a binary, indicating that in the package.json seems like the right thing to do.

@EverlastingBugstopper
Copy link
Contributor

$ volta install @cloudflare/wrangler
success: installed @cloudflare/[email protected] with executables: wrangler

This seems to work

@steveklabnik
Copy link
Contributor Author

image

@EverlastingBugstopper
Copy link
Contributor

<3

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

No branches or pull requests

2 participants