Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
  • 09:56
    kenrick95 commented #5220
  • 09:26
    zkochan commented #5231
  • 09:25
    zkochan commented #5231
  • 09:18
    jigz commented #5236
  • 09:13
    zkochan commented #5220
  • 09:13
    zkochan commented #5220
  • 08:11
    kenrick95 edited #5220
  • 08:10
    kenrick95 ready_for_review #5220
  • 07:45
    kenrick95 edited #5220
  • 07:42
    kenrick95 synchronize #5220
  • 07:34
    kenrick95 synchronize #5220
  • 07:18
    mcmxcdev commented #5236
  • 07:00
    kenrick95 synchronize #5220
  • 06:45
    kenrick95 synchronize #5220
  • 04:06
    kenrick95 synchronize #5220
  • 02:05

    zkochan on main

    test: all test packages should … (compare)

  • 02:05

    zkochan on update-regmock


  • 02:05
    zkochan closed #5211
  • 01:46
    kenrick95 converted_to_draft #5220
  • 01:40
    zkochan ready_for_review #5211
Vaughan Rouesnel

@zkochan What is themy-project/node_modules/.pnpm/node_modules dir? Some dependencies are sitting there which erroneously get found.

I found it to be the cause behind this issue (facebook/react-native#29301). Metro bundler creates worker child processes…and when these processes resolve their dependencies they do it relative to their file location in node_modules…which then means that when searching upwards for their dependencies they hit .pnpm/node_modules/metro which is the wrong version. How does this version get chosen?

There is also a version of React there…which seems odd because its implying a fallback but shouldnt pnpm be strict about deps?

Maybe a bad public-hoist-pattern? What does "By default, all packages are hoisted” mean in hoist-pattern docs…is this to .pnpm/node_modules or to .pnpm/foo|bar|baz...

Question: how does the version to be hoisted get chosen?
I'm guessing my issue comes from an u declared peer dependency of jest-worker
Jonathan Stewmon

:wave: Hi, I'm trying to get started with pnpm (5.13.5) in a monorepo which contains a create-react-app package...

With the default settings, react-scripts precheck fails because it can find an ancestral package with a different version than the one it wants. I could just ignore the preflight check, but I expected to be able to use either the pnp linker or hoist=false to ensure that my react app package does not see any ancestral node_modules.

When I use node-linker=pnp and symlink=false, react-scripts build fails with Couldn't find the package to use as resolution source thrown by pnp-webpack-plugin, which I suppose is because pnp-webpack-plugin is searching upward from its location in the virtual store of my repo root.

When I use hoist=false, all of my packages' direct dependencies have empty node_modules directories (except for the .bin directory). This is most unexpected, as I thought the description of hoist=false indicated that the node_modules directories of all packages would contain directories of exactly the packages mentioned in the dependencies property of their package.json.

TIA for clarifying anything I've misunderstood or tips on how to overcome these issues. :pray:

Jonathan Stewmon
Doh, just noticed the deprecation link in the title... cross-posting my question on Discord...
Günter Zöchbauer

I just started with pnpm
When running pnpm i I get

pnpm i
 WARN  Moving @angular-devkit/build-angular that was installed by a different package manager to "node_modules/.ignored
 WARN  Moving @angular/cli that was installed by a different package manager to "node_modules/.ignored
 WARN  Moving @angular/compiler-cli that was installed by a different package manager to "node_modules/.ignored
 WARN  Moving @angular/language-service that was installed by a different package manager to "node_modules/.ignored
 WARN  Moving @nrwl/cli that was installed by a different package manager to "node_modules/.ignored

Can these folders be deleted?
Why are they created?

basedir=$(dirname "$(echo "$0" | sed -e 's,\,/,g')")
I'm getting this error when using pnpm run start on my script. I'm using sapper
I would suggest that posting be done on Discord. It seems far more active than here!
Is there a pnpm init command or will it do with npm init
Hmmm just typed in pnpm init to find that the init command actually exists (:
Brendon John Muschamp

:wave: Hey ya'll, I've been reading through the docs and are trying to find:

  • Can I specify a minimum pnpm version required for a project?

I haven't seen this in the doc, I'm wondering how others have solved this?

@brendonjohn the channel description is:
DEPRECATED -- USE DISCORD --> https://bit.ly/pnpm-discord-invite
1 reply
Hello everyone, I'm actually migrating my angular project from NPM to PNPM and I'm facing a style issue, if someone can give me some help please! ERROR in multi ./src/styles/import.scss ./node_modules/primeng/resources/primeng.min.css ./node_modules/primeicons/primeicons.css ./node_modules/font-awesome/css/font-awesome.min.css ./node_modules/flag-icon-css/css/flag-icon.min.c ss ./node_modules/ion-rangeslider/css/ion.rangeSlider.css ./src/styles/ion.rangeSlider.skinFlat.css ./node_modules/angular2-multiselect-dropdown/themes/default.theme.css ./node_modules/@angular/material/prebuilt-themes/indigo-pink. css ./src/styles/index.scss Module not found: Error: Can't resolve 'E:\Dev\UVIE\uvie-front\src\styles\ion.rangeSlider.skinFlat.css' in 'E:\Dev\UVIE\uvie-front'
1 reply
Hi everyone, I'm using pnpm to install packages for angular project, and after installing packages I saw that there is a .pnpm folder in the node_module directory, all packages are placed into the .pnpm folder, this cause a problem that ts could not found any module. Did anybody encountered this problem? and what should I do to solve it?
hello,in docker use pnpm install dep, will report 404.
WARN  GET https://registry.npmjs.org/arr-flatten/download/arr-flatten-1.1.0.tgz error (ERR_PNPM_FETCH_404). Will retry in 1 minute. 1 retries left.  WARN  GET https://registry.npmjs.org/anymatch/download/anymatch-1.3.2.tgz error (ERR_PNPM_FETCH_404). Will retry in 1 minute. 1 retries left.  WARN  GET https://registry.npmjs.org/micromatch/download/micromatch-2.3.11.tgz error (ERR_PNPM_FETCH_404). Will retry in 1 minute. 1 retries left.  WARN  GET https://registry.npmjs.org/arr-diff/download/arr-diff-2.0.0.tgz error (ERR_PNPM_FETCH_404). Will retry in 1 minute. 1 retries left.  WARN  GET https://registry.npmjs.org/chokidar/download/chokidar-1.7.0.tgz?cache=0&sync_timestamp=1610773765549&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fchokidar%2Fdownload%2Fchokidar-1.7.0.tgz error (ERR_PNPM_FETCH_404). Will retry in 1 minute. 1 retries left.  ERROR  GET https://registry.npmjs.org/bowser/download/bowser-1.9.4.tgz: Not Found - 404 No authorization header was set for the request.
4 replies
Rohit Verma
hi all, need some help in enabling rush in an existing pnmp workspace folder. The dependency handling of rush is acting different when coming from vanilla pnpm. In our current project we are getting these kind of exceptions The package "@aws-cdk/iam" cannot be listed in both "dependencies" and "peerDependencies". Any idea how to fix ?
John Winston
Hi, has anyone tried docker-compose with a pnpm monorepo before? Is this a good idea to start in the first place? Instead of creating multiple separate images, it will create a big single image, and I am not sure if this is a good thing
Jarrod Payne

I'm using pnpm workspaces via rush. I have an app and a library. For some reason, there are two locations on disk for @emotion/react. Any ideas why this occurs?


  "peerDependencies": {
    "react": "17.0.2",
    "react-dom": "17.0.2",
    "@emotion/react": "11.1.5",
    "@emotion/styled": "11.3.0"
  "devDependencies": {
    "react": "17.0.2",
    "react-dom": "17.0.2",
    "@emotion/react": "11.1.5",
    "@emotion/styled": "11.3.0",


  "dependencies": {
    "react": "17.0.2",
    "react-dom": "17.0.2",
    "@company/ui-web": "workspace:*",
    "@emotion/styled": "11.3.0",
    "@emotion/react": "11.1.5"
1 reply
Martin Hombach
Hey there :) Just started using PNPM. Is there any way to have my angular cli configured in a way, that i automatically uses PNPM and not NPM? When i run "ng new" to create a new project, angular will still use npm for installing the node_modules i guess and i don't want to always delete the installed modules and then use pnpm again because that is just so much work for every project :/
Hi, I want to save nested dependencies of external packages in my project level node_modules. I am working in a monorepo

TL;DR: How to install transitive dependecies with pnpm?

When my project lists an npm package as dependency, npm install will perform installation of both my direct dependencies and "direct dependencies of my direct dependencies" and it goes recursively.

However, when I try to replace npm with pnpm and give command "pnpm install", it only downloads and installs only direct dependencies. pnpm seems not caring about transitive dependencies.

What point am I missing?

Aaron Reisman
Hi folks, I seem to be running into issues when adding pnpm -C workspace-folder build into another script in package.json, anyone know why? the logs seem to duplicate themselves when running pnpm build which points to -> pnpm -C workspace-folder build
Vaughan Rouesnel
Aaron Reisman
Thanks @vjpr
John Winston
Hi I have just pnpm install prettier -g, but when I try to run the command, it gives me this:
  throw err;

Error: Cannot find module '/Users/hugosum/pnpm-global/5/node_modules/prettier/bin-prettier.js'
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:941:15)
    at Function.Module._load (node:internal/modules/cjs/loader:774:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:76:12)
    at node:internal/main/run_main_module:17:47 {
  requireStack: []
how can I fix this? the result of which prettier is /usr/local/bin/prettier
Vaughan Rouesnel
John Winston
hi,I was looking through the documentation and found two commands exec and dlx that are similar to npx, but which one should I use, or how are they different? I'm very curious
Josiah Haswell
hey folks--I'm setting up a monorepo of widgets with a very common structure, and I'd like to reuse gulp commands across the board. Can I use a gulpfile in the root (workspace) directory and run it for all of the packages?
Kashyap Patel
Hello all, Can someone please help me understand why pnpm installs four directories of a same package when I have pnpmOveride set for a package. For example I have this in the root package.json "pnpm": {
"overrides": {
"theme-provider": "3.2.4"
This is what I see in the node_modules.
Deleted node_modules and pnpm-lock files many times before fresh install.
Sam Jones
feel like I'm missing something really dumb here, switching from yarn 1 to pnpm 6.x
two packages side by side kind of deep in a workspace, Package A has a bunch of webpack config stuff, and package B is basically just a TypeScript compile.
However, package B tsc fails on a PILE of webpack related dependencies from Package A.
Eugene Krayni
does pnpm support nested workspaces like yarn? I have a number of monorepos i'd like to consolidate into one. Can I nest them or would I have to flatten them, i.e. bring all packages up to the top level?
Eugene Krayni
i guess this place is dead
1 reply
@eakray Yes, it is dead here for quite sometime. Hop over to Discord, it is quite active there!
Sam Blowes

Hi All, Im having issues with pnpm link not working

pnpm unlink
cd package dir
pnpm link --global
cd project dir
pnpm link --global @the.package/name
pnpm i 
 > @the.package/name is not in the npm registry, or you have no permission to fetch it.

Is anyone able to see what im doing wrong?

Azeem Haider

I'm trying to use pnpm in my Dockerfile I have one dependency which is installed from GitHub, Problem with pnpm is it is not able to access the yarn package, I think some kind of permission problem.

The command '/bin/sh -c pnpm install' returned a non-zero code: 1

Here is my Dockerfile

FROM node:alpine

RUN npm install -g pnpm


COPY ["package.json", "pnpm-lock.yaml", "./"]

RUN pnpm install

COPY . .

RUN pnpm build



CMD [ "node", "./build/index.js" ]
Azeem Haider

Complete error

ERR_PNPM_PREPARE_PKG_FAILURE  Command failed with exit code 1: /usr/local/bin/yarn install

npm i -D test@"^3.0.0" is "test": "^3.0.1"
pnpm i -D test@"^3.0.0" is "test": "3.0.0",
is bug?
pnpm i -D test@"~3.0.0" is "test": "~3.0.0",