pnpm Questions

1

I have an .env file: STH=1 In Node 20 I can do: node --env-file=.env -e "console.log(process.env.STH)" 1 Is there a way, I can incorporate this into running a script with "PNPM&quo...
Cursive asked 15/11, 2023 at 17:38

2

Solved

I'm using pnpm for package management in my project and VS code editor. However, every time I save changes to package.json, a package-lock.json file gets automatically generated, even though I'm no...
Papiamento asked 7/9, 2024 at 7:44

4

Solved

When I deploy my project to Vercel, the build fails with this error: ERR_PNPM_OUTDATED_LOCKFILE  Cannot install with "frozen-lockfile" because pnpm-lock.yaml is not up-to-date with packag...
Baklava asked 9/8, 2023 at 16:22

7

I would like to switch to using PNPM over NPM for the usual reasons. Unfortunately cut and paste, or muscle memory takes over sometimes and I will accidentally use NPM to install a package in a pro...
Sponge asked 13/3, 2022 at 17:11

2

Solved

I've been running pnpm/action-setup@v2 for awhile now, but I started getting this error. Running self-installer...  WARN  GET https://registry.npmjs.org/pnpm error (ERR_INVALID_THIS). Will retry i...
Blesbok asked 3/7, 2024 at 18:17

3

Solved

The pnpm package manager offers three commands that are alternatives for npm's npx command. These are pnpm create, pnpx and pnpm dlx. All three seem to do the same thing. But what are the differenc...
Willey asked 20/8, 2022 at 14:55

3

Solved

I have installed nodejs and i am trying to enable corepack with corepack enable but it gives me this error on windows: Internal Error: EPERM: operation not permitted, open 'C:\Program Files\nodejs\...
Affluent asked 4/1, 2022 at 10:9

5

Solved

I am trying to migrate from yarn to pnpm. I ran pnpm install. It instantly failed and printed to the console: Usage Error: This project is configured to use yarn $ pnpm ... I tried removing (rena...
Shoshana asked 11/5, 2022 at 12:40

4

I've got a clean install of pnpm v8.8.0 on Windows 11. When I try to intall a global package I get: ERR_PNPM_NO_GLOBAL_BIN_DIR  Unable to find the global bin directory I've tried pnpm setup --forc...
Abb asked 3/10, 2023 at 18:8

6

Solved

My goal I am trying to use React native monorepo with PNPM, because I need performance of pnpm. Expected I should be able to bundle React native app with pnpm android and start development server w...
Abatement asked 7/10, 2022 at 20:47

4

Solved

I started on a completely fresh Windows (11) system, installed Node, pnpm and so on. When running pnpm install, I've got the following error: "ERR_PNPM_LINKING_FAILED Error: EPERM: oprtation ...
Cabbagehead asked 26/9, 2023 at 13:46

4

Solved

I'd like to migrate to PNPM, however, I can't find a way to use its lockfile on Google Cloud. My current cloudbuild config is the following: steps: - name: "gcr.io/google.com/cloudsdktool/clou...
Supportable asked 1/8, 2020 at 14:44

2

Solved

I just moved my project from npm and lerna to pnpm but now when using GitHub actions I get the following error "line 1: pnpm: command not found" can someone suggest how the .yml file shou...
Ejector asked 22/12, 2022 at 6:15

3

Versions: vsce version 1.71.0 node version v10.15.3 npm version 6.4.1 vsce publish fails with the below message: Executing prepublish script 'npm run vscode:prepublish'... [email protected]...
Cyrillic asked 18/1, 2020 at 8:47

2

Solved

I'm building a monorepo of UI applications using shared components and style using pnpm, typescript, vue, and vite. While trying to leverage pnpm's workspace ecosystem to ease the development exper...
Norry asked 29/7, 2023 at 12:30

0

I'm trying to install packages that I know are in our private npm registry, I have tested the package URL exists with Postman and cURL, using the auth header containing the NPM_TOKEN that I'm passi...
Gloriagloriana asked 4/12, 2023 at 11:6

4

Solved

Can I use npx together with a pnpm install? It doesn't seem to work and pnpx fetches remote dependencies, it seems more like npm create. Is there a way to use npx with pnpm to execute local binarie...
Porras asked 10/2, 2023 at 15:54

2

Solved

I'm working in a large pnpm monorepo (pnpm v7). The repository contains : multiple apps multiple shared dependencies tooling (shared compilation setup package) Every package (app or shared librar...
Oys asked 12/5, 2022 at 13:24

4

Solved

Question is simple, I want to change where pnpm installs the global packages. I have a custom Node installation on Windows and would prefer to have everything under that directory, especially as t...
Cohdwell asked 7/10, 2019 at 23:6

1

Solved

When you do a simple console log in server API side, it doesn't show up when you build it using pnpm run dev. But if you build it using pnpm run build and run the index.mjs, the console log will s...
Primrosa asked 8/1, 2023 at 16:8

1

I'm trying to create production Dockerfile using NextJS standalone mode and PNPM. In next.config.js i have output configuration: experimental: { outputStandalone: true, outputFileTracingRoot: pa...
Degraw asked 28/1, 2022 at 15:8

5

Solved

Is there any way how to check directory/path of pnpm store? I know you can set it with npm config set store /path/to/.pnpm-store, but npm config get store in my case returns undefined, which I gue...
Henghold asked 28/3, 2019 at 17:36

2

Solved

Did not find much, yet for that topic, therefore using SO-question. For commands like e.g. ng add @angular/material I would like to use the package manager of choice pnpm.
Monochromatic asked 29/1, 2021 at 6:40

2

i'm trying to convert an inherited monorepo from yarn+lerna to pnpm workspaces i'm currently getting an error due to mismatching react versions, typescript isn't picking up on the @types/react vers...
Habiliment asked 1/11, 2022 at 8:48

2

Solved

npm link and yarn link are both "not the best". I run into issues with them quite often. Now I have read about pnpm and its local storage. I wonder if pnpm can help me remedy my npm link ...
Through asked 27/4, 2022 at 16:7

© 2022 - 2025 — McMap. All rights reserved.