DEV Community

Ostap Brehin
Ostap Brehin

Posted on • Updated on

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/