Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
1 answer
2k views

npm error code EUNSUPPORTEDPROTOCOL npm error Unsupported URL Type "workspace:": workspace:*

The error is coming because the project is setup to use pnpm. But what I want is to display a suitable message to the user to let them know that they have to use pnpm instead of npm or yarn. I have ...
ROHIT SOMVANSHI's user avatar
11 votes
2 answers
2k views

`node_modules` is present warning with pnpm

When I run pnpm install in my project I get a warning: `node_modules` is present. Lockfile only installation will make it out-of-date What will be out of date. node_modules the lockfile? Should I be ...
Ethan's user avatar
  • 1,783
2 votes
0 answers
438 views

PNPM Cannot create files. ERR_PNPM_ENOENT ENOENT: no such file or directory

I am trying to run pnpm install for a public project chainlit but get ERR_PNPM_ENOENT. pnpm version is 9.0.6. pnpm doctor outputs nothing. I tried clearing the cache but the error still persists:  ...
Mayaank Vadlamani's user avatar
1 vote
1 answer
4k views

pnpm recursive install order

I have a monorepo project, which contains workspace A and B, where A depends on B being built first. Each is in its own folder, defined in pnpm-workspace.yaml packages: - 'src/mydepa' - 'src/mydepb' ...
myol's user avatar
  • 10k
1 vote
0 answers
1k views

How does pnpm-lock.yaml work in mono repo

I am at present working on npm to pnpm migration. I have couple of doubts. The project structure goes like this: Before: Root projectAUsingGo projectAUsingPython UI web (main project) package.json ...
Mithun Shreevatsa's user avatar
0 votes
1 answer
532 views

Why does pnpm v7 create multiple instances for the same library?

I am using pnpm workspace to manage my projects. The folder structure looks like this. └── my-project/ ├── apps/ │ └── myapp/ │ ├── package1 │ ├── package2 │ └──...
Alice's user avatar
  • 117
1 vote
2 answers
4k views

How to resolve dependencies in PNPM workspace?

I have a pnpm workspace with the following structure: root |- example | |- package.json | |- packages | |- a | | |- package.json | | | |- b | | |- package.json | | | |- c | | |- package....
guess what's user avatar
0 votes
1 answer
3k views

Moving from lerna to pnpm

I am currently migrating our project from Lerna to PNPM and we have a script we run I have posted it below "postinstall": "npm run bootstrap" "bootstrap": "lerna ...
Hamzah Hameed's user avatar
8 votes
1 answer
3k views

Publish NPM package that uses a workspaces as dependencies

so I have a project that I'm working on that is a Monorepo. So I have a packages directory in the root directory that contains all my npm packages. Some of these packages rely on eachother e.g. in a ...
Artrix's user avatar
  • 188