DEV Community

Ostap Brehin
Ostap Brehin

Posted on β€’ Edited on

2 1

How to use PNPM with Laravel

PNPM is a "Fast, disk space-efficient package manager".

Here is a simple script to start using pnpm in Laravel:

echo "shamefully-hoist=true" > .npmrc
Enter fullscreen mode Exit fullscreen mode

Now you run build scripts as usual:

pnpm run watch
# or
pnpm run dev
Enter fullscreen mode Exit fullscreen mode

Top comments (2)

Collapse
 
flcwl profile image
Little Rui β€’

what is pnpm

Collapse
 
ostap profile image
Ostap Brehin β€’

"Fast, disk space-efficient package manager"

It's npm-compatible and saves a lot of disk storage, also works faster than npm.

pnpm.js.org/

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay