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
1 answer

Invalid array length when pnpm install

I'm getting Invalid array length error when trying to install packages in a docker container: Step 8/38 : RUN pnpm install ---> Running in 13202af71de7 Progress: resolved 1, reused 0, downloaded 0, added 0 Downloading…
Majid Yaghouti
  • 907
  • 12
  • 25
0
votes
1 answer

how bundler handle the dependencies and why put eslint thing into `dependencies`?

this is question is basically a variant of dependencies vs. devDependencies, I am looking through some source code these days, most of monorepo project will have a eslint-config to do lint what confuses me is that they all put the eslint-plugin into…
homy
  • 311
  • 2
  • 7
0
votes
1 answer

How does dotenv cli with "--" (double-dash) running commands?

Im my project i am trying to use dotenv-cli with pnpm. I am using PowerShell 7.2.1 on windows. I have monorepo with package api with script dev in package.json. First what I tried was: dotenv -e .\.env -- pnpm dev --filter api And it did not…
valerii15298
  • 737
  • 4
  • 15
0
votes
0 answers

Monorepo slows down my i5 8th gen , 8gb ram laptop

I searched a lot about this issue but can't find any question or problem related to this on internet. I am a student and currently contributing to open source . I came across lot's of big open source projects which are mono repo . Currently I am…
0
votes
2 answers

Caused by: com.vaadin.flow.server.ExecutionFailedException: Command 'npm install' failed to finish for Sparing Boot app with Vaadin

I have a Spring Boot stub project just generated on Spring Initializr, with pnpm preinstalled, but currenty no npm is installed, runned on Windows 10 with mvn spring-boot:run The pom.xml is:
Eljah
  • 4,188
  • 4
  • 41
  • 85
0
votes
0 answers

ERROR in xxx from UglifyJs when PNPM project are packaged

I encountered this error while packaging the project. enter image description here And I know it is probably because of the conversion problem of es5. But when I packaged the project with npm, it was right. So, please give me advice about pnpm…
Wailen
  • 1
0
votes
1 answer

PNPM docker non-root user Permission Denied

I just found about pnpm today and it helped solve my issue with npm timing out on my installation which is amazing. I've a problem with pnpm tho in the docker image. Previously with just npm I had unprivileged user like so FROM node:14.17.3-slim #…
Mugetsu
  • 1,739
  • 2
  • 20
  • 41
0
votes
1 answer

How to install older version of create-react-app through pnpx?

When I type this code pnpx create-react-app my-app --template typescript Output screen ✔ Install the following package: create-react-app@latest? (Y/n) · false Cancelled If I type 'n' it not install. If I type 'y' it install create-react-app for…
Gaurav Singh
  • 19
  • 1
  • 4
0
votes
1 answer

PNPM and corrupted files

I'm trying to use pnpm on a large dependency tree. Everything installs correctly, however some files are corrupted and can't be opened (they appear as binary files). Is there a way to check the integrity of the store, or debug the installation…
Jérémie B
  • 10,611
  • 1
  • 26
  • 43
0
votes
1 answer

Possible to use only one package version using pnpm?

I need to use apollo-server and graphql-upload to handle file uploads. This is working as expected with the old graphql-upload v9. Updating to the latest v11 results in failing uploads. To make it short, the problem is, that apollo-server (and…
user3142695
  • 15,844
  • 47
  • 176
  • 332
0
votes
1 answer

does npm still don't saving anything to speed up the installation of already installed modules?

I know pnpm and yarn reuse modules that we already installed, what, in not updated tutorials that i see, we see that this is something that pnpm and yarn came to fix in npm, which downloaded the modules from the internet every time we install it.…
vitorfigm
  • 13
  • 1
0
votes
1 answer

pnpm vs winrar. what of those methods install modules faster?

What is faster, have the modules of a node_modules folder saved in pnpm and use the package.json to install it with the pnpm or compress a node_modules folder in a rar file to extract in our project whenever we need to?
vitorfigm
  • 13
  • 1
0
votes
0 answers

How to prevent consumers of my library to install my devDependencies?

I've a library which has a peerDependency. In order to be able to work on the library, I have also listed it as a devDependency: { "peerDependencies": { "foo": "^3.0 || ^4.0" }, "devDependency": { "foo": "^4.0" } } I've received…
Christopher Francisco
  • 15,672
  • 28
  • 94
  • 206
0
votes
0 answers

Running nodeJS applications from external drive on different OS

I need to run multiple nodeJS applications on my main development machine, which is running a macOS, and a second one, which is a windows system without an internet connection. Because of the missing internet connection, I cannot run npm install. I…
user3142695
  • 15,844
  • 47
  • 176
  • 332
0
votes
1 answer

How to set up cypress run for TypeScript in WebStorm

I have a project build in TypeScript and I would like to use cypress run to run my unit test. Everything works when I trigger command line from terminal, but how can I set up cypress run with WebStorm IDE under Run/Debug Configuration? The only…
jacobcan118
  • 7,797
  • 12
  • 50
  • 95
1 2 3
24
25