DJJ375
DJJ375

Reputation: 11

how to install pnpm without first installing npm

I am sitting in front of a completely clean windows 10 install – VS Code is installed but nothing else:

  1. Is it possible to install and use pnpm without installing npm?
  2. Is doing that a good thing or bad thing? context - typescript

Upvotes: 1

Views: 3326

Answers (2)

Ismail
Ismail

Reputation: 1316

Another approach is using COREPACK

corepack enable pnpm

Upvotes: 0

Evaldas Buinauskas
Evaldas Buinauskas

Reputation: 14077

There's a standalone script on pnpm installation guide.

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

Windows doesn't have curl, instead you can use Invoke-WebRequest within PowerShell for that. So probably this should work:

Invoke-WebRequest -Uri https://unpkg.com/@pnpm/self-installer | node

Update

Try downloading file instead and then executing it with node:

Invoke-WebRequest -Uri https://unpkg.com/@pnpm/self-installer -OutFile pnpm.js; node pnpm.js

Your second question is unclear.

Upvotes: 1

Related Questions