Header

Using PNPM in the Build Pipeline

In order to be able to use PNPM to build your node projects, you will need to first add this step:

  export PATH=./node_modules/.bin:$PATH
  npm install pnpm
  # Checks pnpm version
  pnpm -v
  # Installs dependencies with pnpm
  pnpm install

What's pnpm?

pnpm is like npm, but it's way faster and more efficient. After all, the starting p stands for performant. According to its creator, Zoltan Kochan, pnpm "allows you to save gigabytes of disk space." Many popular projects including Next. js, Vite, Svelte, and even freeCodeCamp use pnpm.

Happy deploying!

Tree

Proudly powered by Katapult. Running on 100% renewable energy.