How to use PNPM with Laravel
Ostap Brehin

Ostap Brehin @ostap

About: 20 y.o maker from 🇺🇦 Ukraine

Location:
🇬🇧 England
Joined:
Jul 28, 2018

How to use PNPM with Laravel

Publish Date: Nov 21 '20
4 2

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

Comments 2 total

  • Little Rui
    Little RuiNov 22, 2020

    what is pnpm

    • Ostap Brehin
      Ostap BrehinNov 22, 2020

      "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/

Add comment