All Questions
9 questions
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 ...
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 ...
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:
...
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'
...
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
...
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
│ └──...
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....
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 ...
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 ...