DEV Community

Cover image for npx alternative for pnpm
Michal Bryxí
Michal Bryxí

Posted on • Edited on

npx alternative for pnpm

# Command
npx

# Example
npx ember-apply tailwind-webpack
Enter fullscreen mode Exit fullscreen mode

Run a command from a local or remote npm package

-- npx docs

# Command
pnpm dlx

# Example
pnpm dlx ember-apply tailwind-webpack
Enter fullscreen mode Exit fullscreen mode

Fetches a package from the registry without installing it as a dependency, hotloads it, and runs whatever default command binary it exposes.

-- pnpm docs


Title image generated with ChatGPT4 using prompt: "Image of confused web developer having too many choices. Also the developer is a squirrel running high on caffeine --ar 16:9"

Top comments (2)

Collapse
 
jangelodev profile image
João Angelo

Hi Michal Bryxí,
Your tips are very useful.
Thanks for sharing.

Collapse
 
michalbryxi profile image
Michal Bryxí • Edited

Thank you @jangelodev! I (also) take them as love letters to my future self ❤️