Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pnpm: command not found?

Inside a next.js project I try to type npm run dev in the terminal, but nothing happpens. Except this: sh: pnpm: command not found.

I think I am in the correct folder, and I also have run npm install. This is an existing project, that I have cloned.

What can I do to resolve the issue?

like image 512
Zappoh Avatar asked Sep 05 '25 02:09

Zappoh


2 Answers

Install pnpm with npm i pnpm --global. Or use npm.

like image 178
Prince Ajuzie Avatar answered Sep 07 '25 19:09

Prince Ajuzie


You will have to run corepack command to enable pnpm:

corepack enable pnpm

like image 39
Abhishek Jain Avatar answered Sep 07 '25 21:09

Abhishek Jain