Questions tagged [yarn-v2]
The yarn-v2 tag has no usage guidance.
yarn-v2
260
questions
0
votes
0
answers
14
views
How to do "yarn upgrade" in yarn 3
I've recently upgraded my react-native project to RN v0.74, which now comes with yarn 3 as default (still using node_modules folder). Before i was using yarn 1.
So now i wanted to upgrade my packages ...
0
votes
1
answer
11
views
Yarn PNP module controlled by multiple pnpapi instances
I'm working on a React+vite application that uses yarn pnp. It worked fine, but now I'm having the following issue concerning yarn when I start the application (yarn dev or yarn build).
Error: Unable ...
0
votes
0
answers
14
views
Yarn4+Prisma in typescript project cause TS error despite checkJs being false
I use yarn 4 and prisma.
Prisma is an ORM, this orm has a command prisma generate client, and it generate a package in node_modules/@prisma/client.
Unfortunately with yarn 4, this features does not ...
0
votes
1
answer
22
views
How to develop with an external npm package into a Yarn PnP monorepo?
I do have to work with a large Yarn PnP mono repo (~30 packages and 3 micro apps).
One of the packages (package-b) is using an external npm package package-a (which is using npm as a package manager) ...
0
votes
0
answers
17
views
Unable to run yarn dlx
I've got a Next.js v14.2.4 project using Yarn PnP. When I attempt to add the VSCode SDK or run doctor it fails:
Everything else is working--I can run yarn install and yarn dev without issue. But it ...
1
vote
1
answer
77
views
Error: Cannot find module '/Users/user/directory/app/.yarn/releases/yarn-3.6.4.cjs'
Trying to upgrade from React Native to 0.73.6 to 0.74.2.
React Native upgrade instructions said to add the following
packageManager": "[email protected]
to package.json and add the following to a ...
0
votes
0
answers
11
views
Resolving Peer Dependency Errors With Local Package in Node.js
I have a node service with several subservices in a project managed with yarn. They all rely on one third-party library, but one of the subservices requires a later major release of the third-party ...
0
votes
0
answers
46
views
How to Yarn build/install modified mono-repo package?
I'm using tldraw package for my website and got stuck on the deployment process. I asked for help on GitHub, but I didn't get a response. I was wondering if anyone here would be able to help me since ...
0
votes
0
answers
88
views
How on "yarn install" install dependencies with different yarn versions?
My yarn version is 3.3.1.
On package.json file I have some dependencies, like this:
"dependencies": {
"sampleA": "1.2.3",
"sampleB": "0.0.4"
}
...
-3
votes
1
answer
343
views
Can't install nut-tree/nut-js on macOS
yarn add @nut-tree/nut-js
**yarn add v1.22.22**
warning package.json: No license field
info No lockfile found.
warning No license field
\[1/4\] 🔍 Resolving packages...
error Error: https://...
0
votes
1
answer
13
views
Why is yarn producing this undefined error?
I am trying to upgrade eslint-config-airbnb so I run npx install-peerdeps --dev eslint-config-airbnb
But I get the error:
install-peerdeps v3.0.3
It seems as if you are using Yarn. Would you like to ...
1
vote
0
answers
30
views
TS compiler confused about remapped paths in another workspace package
Context
Within a workspace (Bun/Yarn) I have a package server with this TS config:
"compilerOptions": {
"baseUrl": "./src",
"paths": {
"~/*&...
0
votes
0
answers
18
views
Issues using yarn(npm) link with parcel
I am trying to link three.js via yarn link into a repo that uses parcel.
Every time I run parcel it seems to complain about a different file from three/examples/jsm... eg:
@parcel/core: Failed to ...
1
vote
0
answers
354
views
How to set up .yarnrc.yml for multiple private npm packages with different registry servers, but the same scope?
I've seen multiple similar questions, but none gives the full answer. I'm trying to migrate my project to Yarn v4. I have several private npm packages hosted on GitLab. They have different registry ...
1
vote
0
answers
222
views
yarn installation error via npm and brew both
I am Mac user and I have Mac 2017 with MAC OS Sonoma. So far I have dig up every source to find out the answer but unfortunately I haven't find any answer which can solve my problem. Any help would be ...