Install PNPM on Alpine Linux 3.17

Install PNPM on Alpine Linux 3.17

Introduction

PNPM is often times used alongside NPM when building a project. Then typical way to install PNPM would be to add it via apk. However it does not seem there is a working package that has been added for Alpine 3.17. However, you can manually install it. These steps are assume you are using Alpine 3.17 on a Proxmox LXC container.

Installation

Step 1) First you will need to install Curl.

apk add curl 

Step 2) After that you can run the provided PNPM installer script

curl -L https://unpkg.com/@pnpm/self-installer | node

Step 3) Check that it has been installed

pnpm --version

Thanks for reading!

Written By: Max Kulik


Sources