Questions tagged [pnpm]

pnpm uses hard links and symlinks to save one version of a module only ever once on a disk. When using npm or Yarn for example, if you have 100 projects using the same version of lodash, you will have 100 copies of lodash on disk. With pnpm, lodash will be saved in a single place on the disk and a hard link will put it into the node_modules where it should be installed. As a result, you save space on your disk and you have a lot faster installations!

Use this tag to ask questions about the package manager. If you find any issue or would like to suggest an improvement, please use the GitHub repository issues list.

For more information check the package description and the repository.

376 questions
0
votes
0 answers

Cannot compile app after upgrading to Angular 14

I am upgrading an inherited app from Angular 9 - 14. I am encountering a couple of types of errors that cannot be explained. These errors seem to be related to Material Modules and FormModules. I would guess that I am not importing / declaring /…
Jeff Wilkerson
  • 376
  • 2
  • 18
0
votes
0 answers

Nodejs how to get working path of terminal?

I create a npm cli that clone my git repo shell.exec( `git clone https://github.com/ITSME/${name} ${process.env.PWD}/${pname}` ); But the problem is process.env.PWD always indicate workspace's…
MINJA KIM
  • 876
  • 1
  • 8
  • 22
0
votes
0 answers

TurboRepo starts webserver and then immediately successfully exists

I have turborepo set up with pnpm and I'm trying to start the react frontend of one of my clients with this command: npx turbo run start --filter=testclient Here's the output from this command: • Packages in scope: testclient • Running start in 1…
usbToaster
  • 475
  • 1
  • 4
  • 13
0
votes
2 answers

Turborepo/pnpm workspaces: build my package and every package I depend on

I have three packages in my turborepo monorepo, top, middle, and bottom. top depends on middle and middle depends on bottom. If I do this: cd bottom make some edits cd ../middle make some edits I want to type something in that directory (middle)…
Mike Hogan
  • 9,933
  • 9
  • 41
  • 71
0
votes
1 answer

when I use pnpm, how to set symlink for all the directory which in my workspace, just like yarn do

my project like this my-project │ ├─ node_modules * ├─ packages │ ├─ a │ │ └─ package.json │ └─ b │ └─ package.json ├─ package.json In a's and b's package.json, I set their name "@mono/a" and "@mono/b", how can I get a symlink @mono in my…
0
votes
1 answer

Inconsistencies between node's `spawn` and terminal

I'm trying to run a script from node, and I'm seeing different behaviour compared to if I run it from the terminal and I don't understand why. I'm trying to do something a little bit out there, in that to save people typing pnpm {scriptName}…
Ian
  • 33,605
  • 26
  • 118
  • 198
0
votes
1 answer

pnpm list all dependencies recursively

I want to list all workspace dependencies recursively for a pnpm package in a workspace. If I am at the workspace root, and I type: pnpm list -r I see all dependencies for the whole workspace. If I type pnpm list --prod…
Mike Hogan
  • 9,933
  • 9
  • 41
  • 71
0
votes
1 answer

how to konw a package global installed full path by pnpm?

how to konw a package global installed full path by pnpm? I have tried pnpm store path. that was not precise enough.
hellorayza
  • 49
  • 1
  • 7
0
votes
1 answer

Why is pnpm using a different version to the one in package.json

My package.json contains this: "devDependencies": { "typescript": "~4.6.2", "jest": "~27.5.1", "ts-jest": "~27.1.3", "@types/jest": "~27.4.1", "@types/uuid": "~8.3.0" }, I get an error like this when I run pnpm run test: …
Mike Hogan
  • 9,933
  • 9
  • 41
  • 71
0
votes
1 answer

How to install old version of pnpm in ubuntu

I need to install the old version of pnpm v6.24.2 for woocommerce-admin current version is 7.9.0 also getting errors while running npm build: Your pnpm version is incompatible with "/home/user/Desktop/woocommerce-admin". Expected version:…
nbl007
  • 3
  • 5
0
votes
1 answer

How can I use sharp on AWS Lambda with pnpm?

I'm trying to run a lambda function with sharp installed. Sharp has instructions to install on AWS Lambda, but they are specific to npm. Specifically it requires me to run this: npm install --arch=x64 --platform=linux --libc=glibc sharp pnpm…
Trevor Allred
  • 888
  • 2
  • 13
  • 22
0
votes
1 answer

sh: 1: nest: Permission denied in GitHub Action

For some reason the build step for my NestJS project in my GitHub Action fails for a few days now. I use Turborepo with pnpm in a monorepo and try to run the build with turbo run build. This works flawlessly on my local machine, but somehow in…
0
votes
1 answer

How to handle .yarnc in pnpm? Installing private from registry?

How to handle .yarnrc in pnpm? Should I convert it somehow to pnpm equivalent of .yarnrc but I can't find any existing. So should pnpm use .yarnrc? but it doesn't seem to be able to handle it... Currently it have problems to fetch libraries for…
stopsopa
  • 408
  • 4
  • 20
0
votes
1 answer

Jest transformIgnorePatterns can't transpile vee-validate with pnpm

I have a Nuxt app that runs with pnpm and I'd like to test it using Jest and the vee-validate library. Whenever I launch my tests, I get this error: FAIL test/integration/components/ui/RegistrationForm.test.ts ● Test suite failed to run Jest…
Théo Lavaux
  • 1,364
  • 3
  • 22
  • 46
0
votes
1 answer

Pnpm cannot find modules after project renaming

After renaming project folder pnpm throws error "Cannot find module...". At first times pnpm gives me a message for changing "virtual-store-dir", but I'm not receiving them any more, just getting an error. So, how safety to rename project folder?
Mero
  • 630
  • 4
  • 12