Re:Uv's killer feature is pulling in local dependencies
by nicoburns on Monday January 13, 2025 @12:58AM
(#42680496)
The `npx` command (which comes bundled with any nodejs install) is the way to do that these days.
[ Parent
| on HN ]
Re:Uv's killer feature is pulling in local dependencies
by 8n4vidtmkvmk on Tuesday January 14, 2025 @12:44AM
(#42694095)
`npx` doesn't update package.json/package.lock though, right? So you might get a different version of the package once awhile. If it's an executable you depend on for your project, it makes sense to version it IMO.
Re:Uv's killer feature is pulling in local dependencies
by nicoburns on Tuesday January 14, 2025 @12:54AM
(#42694165)
You can do a (local) install using `npm install` and then execute the binary using `npx`. npx will also try to fetch the binary over the network if you don't have it installed, which is questionable behaviour in my opinion, but you can just cancel this if it starts doing it.