aalaap,

I don't really enjoy using .

aalaap,

Why isn't there an alternative yet?

noim,
@noim@noc.social avatar

@aalaap What would you expect from a npx alternative?

aalaap,

@noim I don't know. I mean, there's and as alternatives, so I'd be interested in seeing alternate takes on .

voxpelli,
@voxpelli@mastodon.social avatar

@aalaap @noim Which part of it? npx is pretty much a shorthand for npm exec (https://docs.npmjs.com/cli/v7/commands/npm-exec) + for all installed packages you can find their executables in “node-modules/.bin/“ and can execute them like any normal CLI
command from there

aalaap,
aalaap,

@voxpelli @noim I'm not saying something is missing, nor do I have any specific ideas for improvement, but I'm just wondering why there aren't many alternatives and that I'd like to know what ideas others may have.

voxpelli,
@voxpelli@mastodon.social avatar

@aalaap @noim Actually: yarn has had an npx style command since before npm

If you run eg “yarn eslint” in a repository with ESLint installed, then the binary of eslint will run

See https://yarnpkg.com/cli/run

It has been a bit of a contentious decision, some consider it bad practice as it can have confusing conflicts with built in yarn commands or defined npm scripts, hence I believe why npm opted for a separate command (and even the design of that one has been somewhat contentious)

aalaap,

@voxpelli @noim I don't use much personally, so I'm not sure about those features.

One of the things I don't like about is that it takes the same amount of time as an install, even if I have already run the npx command and downloaded (cached) the packages earlier. I've not found a way around this and I'm really hoping there was a way to run npx .

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • DreamBathrooms
  • ngwrru68w68
  • tester
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • mdbf
  • tacticalgear
  • JUstTest
  • osvaldo12
  • normalnudes
  • cubers
  • cisconetworking
  • everett
  • GTA5RPClips
  • ethstaker
  • Leos
  • anitta
  • modclub
  • megavids
  • provamag3
  • lostlight
  • All magazines