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

Monorepo - lock app to stay on specific package version

I have a monorepo, that contains packages, and apps that are using those packages. I am using pnpm workspaces on all apps with workspace:* Now I've updated on of the packages with breaking changes, and one app is not ready to for it, is there any…
uneasy
  • 547
  • 1
  • 7
  • 17
0
votes
0 answers

How to run npm script of an installed package from parent directory using pnpm?

I have the following folder structure: |-- node_modules | |-- puppeteer | |-- package.json |- package.json |-index.js In the node_modules/puppeteer/package.json file there is a script I want to run from my package.json file using pnpm. I know…
Anthony Luzquiños
  • 739
  • 11
  • 23
0
votes
0 answers

SvelteKit tries to connect to db during build time for docker compose

I have a SvelteKit project where it connects to my MongoDB in the hooks.server.ts and my utility mongo.ts file. During build time for my Docker Compose, it attempts to connect MongoDB when the logs say they build the hooks.server.ts file but…
PScoriae
  • 3
  • 2
  • 3
0
votes
0 answers

Running Hot Reload for shared package in monorepo environment

I have 3 services sharing 1 common package. I've set a docker-compose.yaml file to run these services together (each service has its own container). Also I configured, using bind mount, hot reload for each service. Now, I also have 1 shared package,…
Tal Rofe
  • 457
  • 12
  • 46
0
votes
0 answers

PNPM WARN deprecated stringify-package

I'm using Nodejs and PNPM. It's my first use of PNPM and I got this WARN message below. How to solve it please ? WARN  deprecated stringify-package@1.0.1: This module is not used anymore, and has been replaced by @npmcli/package-json
Sabgramar
  • 101
  • 5
0
votes
1 answer

@discordjs/voice can't find encryption package with pnpm

When I try to play audio with @discordjs/voice I just get an error: ERROR file:///C:/Users/[username]/Desktop/code/[project…
jackssrt
  • 364
  • 1
  • 2
  • 16
0
votes
0 answers

install pnpm workspace not using link but using node_modules

For example, there is two package A and B root ㄴA ㄴB I want to install A package in package B. if i execute pnpm install @workspace/B, A is installed in B by link. I want to install A in B's node_moduels. how can i do this?
Shellboy
  • 39
  • 2
  • 7
0
votes
1 answer

pnpm command not found error in bitbucket pipeline

yml file: image: node:latest definitions: yaml-anchors: - &aws-login oidc: true name: 'AWS login' script: - echo "Signing into aws..." - export REGION=us-east-1 - export…
kittu
  • 6,662
  • 21
  • 91
  • 185
0
votes
1 answer

Several people on same project using different package manager?

Let's say we have a Vue/React project that requires 3 people, but each of those people has a different taste in package manager. The first person already feels cozy using npm, the second one uses yarn because he thinks it has better security, and…
0
votes
2 answers

Additional (not imported) dependencies for Remix site deploy to Netlify required?

I'm currently trying to deploy a Remix App to Netlify and followed the steps described in the Netlify docs. However, as soon as I try to deploy the site (netlify deploy), Netlify complains about some missing dependencies I never directly imported…
BennoDev
  • 1,067
  • 1
  • 6
  • 17
0
votes
0 answers

How to exclude hoist pnpm in monorepo

I am tring to unhoist @nestjs/* modules in my monorepo In my root's .npmrc I tried hoist-pattern[]=!@nestjs/* I am not sure this is right syntax for all my projects possible options ? I am not sure but maybe one of them…
MINJA KIM
  • 876
  • 1
  • 8
  • 22
0
votes
0 answers

Pnpm package gets suffix on version number. Doesn't replace previous package when i run upgrade

I have a package from my design-system called @spid/react-wrapper. When I do pnpm add @spid/react-wrapper, I get a package like this in my node_modules/.pnpm/ folder: @spid/react-wrapper@1.0.95_biqbaboplfbrettd7655fr4n2y. When I do pnpm upgrade, I…
mTv
  • 1,074
  • 17
  • 28
0
votes
2 answers

Installing PNPM Package Manager on Debian/Ubuntu?

I'm trying to install the PNPM package manager on debian/ubuntu, but when I enter the command: curl -fsSL https://get.pnpm.io/install.sh | sh- The following error shows up: bash: sh-: command not found (23) Failed writing body Does anyone know how…
user20179334
0
votes
0 answers

Expand package.json exports field

I used to see some expand on exports field, but I don't remember where. e.g. I have a package.json like { "exports": { "pages/*.js": { "import": "./lib/pages/*.js" } } } I want to expand when upload to registry or registry can…
wener
  • 7,191
  • 6
  • 54
  • 78
0
votes
1 answer

Docker compose fail to start container in monorepo environment

I have a PNPM workspace environment. I try to build one of my package using docker compose. To do so, I have the following script in package.json file (in root folder): "cluster:start": "pnpm exec ./docker/scripts/start-cluster.sh" This is the…
Tal Rofe
  • 457
  • 12
  • 46