-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
deps: Including additional binaries with npm? #13640
Comments
To be clear, "binaries" here doesn't mean actual compiled executables/addons but instead node script files, right? |
@mscdex yes, I'm using |
Did you check for name conflicts with existing programs? I didn't find anything called 'npx' in apt (debian) but that's not exhaustive. |
No result on Fedora with |
Nothing on |
There is no default formula for any This does mean shipping another dep though with all the same weird caveats that shipping npm has (albeit |
Presumably it'll be included in the npm source, so it won't be a separate folder in |
I interpreted that comment as needing to update installers, etc. I'm curious if distro vendors would package it. |
I do not think this is the case, |
I checked this originally when I chose the It will be included with the npm sources, and installed alongside the regular |
it looks like this is going to be coming in a future semver minor of npm. If we plan to ship this we need to ensure it ends up in the binary as expected and is installed properly by the double click installers |
@zkat what do you see the install formula being? i.e. if the |
For our Unix Lines 92 to 99 in 23498f2
|
The windows MSI installer currently has only directives for the |
I haven't added the built-in shims yet, but I think it's safe to assume right now that they'll mirror the npm ones, but replacing |
The PR is up for your consideration, curiosity, and merge bit ;) |
I am not sure this is the right place to raise this, or if I am in any position to do so, but as I haven't seen anyone present this view, I am going to take the liberty to do so anyway. Something like If this question has been discussed in other places, I apologize for missing it. To make it perfectly clear, I am an npm-fanboy myself (I think |
P.S. As I mentioned above I also implemented a similar "hack" by adding |
I am +1 to bundling |
Sorry but I don't use npx and don't want my cli autocomplete polluted with it. Installing npx from npm isn't that much of hassle and if someone wants to use it they can install it in a few seconds. |
Seems like something to take up with To be clear, I haven't actually used |
@mohsen1 Your CLI autocomplete isn't polluted by default, only by choice IIRC. |
|
Hey y'all!
So, the npm team is planning on bundling npx with the standard npm distribution sometime soonish. We figured we should let y'all know asap so we can start having a conversation about how this would affect your own distribution (if at all), and if there's anything you need from us to get this to work -- since right now, we only ship the
npm
binary, and this would mean an additionalnpx
getting installed into users' bin dir.idk if there's much to say here besides that! If this is just fine, feel free to close it, and we'll give y'all a heads up when we push a version of npm with npx bundled into it (in the next month or so). We think npx is gonna be a pretty core/important tool for npm users, since it'll give everyone easier access to the various CLI tools available in the npm registry, as well as solve a long-standing problem where there's been no standardised way to invoke devDependency binaries while working interactively.
The text was updated successfully, but these errors were encountered: