Questions tagged [yarn-v2]
255 questions
5
votes
1 answer
Difference between yarn versions
I've been using yarn 1.x for a while, installed with npm. Today, I wanted to use a plugin, which, after some research propted me to install something like yarn 3.x. I had no idea that there are other supported versions of yarn. To be honest, now I'm…

TDiblik
- 522
- 4
- 18
4
votes
3 answers
yarn v2/v3 has no outdated command?
on yarn outdated in yarn v2 or v3 there is this error:
Usage Error: Couldn't find a script named "outdated".
I found an alternative with yarn upgrade-interactive, but then I need to install this plugin into the project, which is wanted to avoid. Is…

Melounek
- 764
- 4
- 20
4
votes
0 answers
Why is tsc command not found in child package in yarn workspace?
I'm using yarn version 3.2.4. I have a package.json in my root that looks like this:
{
"scripts": {
"compile": "tsc --build",
},
"devDependencies": {
"typescript": "^4.8.4"
}
}
In packages/foo, I have this package.json
{
…

Trevor Allred
- 888
- 2
- 13
- 22
4
votes
0 answers
When using yarn-berry, should I apply the unplugged to the git repository when implementing zero-installs?
When using yarn-berry, should I apply the unplugged to the git repository when implementing zero-installs?
As far as I know, in the case of zero-installs, we proceed with yarn start immediately after receiving
git clone from the git…

loare
- 59
- 7
4
votes
0 answers
Why is Yarn build so slow?
Recently, my build process became insanely slow - every container builds for 2-5 minutes. For every container, the slowest process is RUN yarn build. Nobody on the team experienced this (so, I am assuming it is something that affects only my…

MeMyselfNI
- 65
- 1
- 5
4
votes
2 answers
Cannot find module using Yarn v. 3
I am following this installation guide and got error cannot find module - https://yarnpkg.com/getting-started/install
Here is repo - https://github.com/worldpwn/yarn-3-cannot-find-module-error
Step 1 Install Corepack
$ node -v
v16.13.0
$ corepack…

Andrei Kniazev
- 103
- 2
- 8
4
votes
0 answers
yarn-berry with save selected dependencies in node_modules
I want to use Gulp and ES6modules with Yarn PnP, but Gulp with ES6modules doesn't support PnP...
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'gulp' imported from //gulpfile.js
Did you mean to import…

Vladislav
- 41
- 1
4
votes
3 answers
Unable to install yarn on windows 10
I installed node v16.13.0, npm v8.1.0 java version 1.8.0_211 and I thought I also have installed yarn, but trying to install expo using yarn global add expo-cli I get:
yarn : File C:\Program Files\nodejs\yarn.ps1 cannot be loaded. The file…
user11240162
4
votes
2 answers
Authenticate npm private registry in docker
We're publishing scoped js packages to a private registry (managed by us using Verdaccio).
It means that in our production environment, we need to authenticate to our private registry to use yarn install. What's the easiest way to do it ?

mbesson
- 629
- 5
- 24
4
votes
1 answer
tsx cannot find module 'xxx'
I am using yarn v2 to install the dependency package, and using yarn start command to start the project smoothly, but vscode always reminds me that I can't find any local modules.
And here is my tsconfig.json file:
{
"compilerOptions": {
…

Liam_1998
- 1,157
- 3
- 12
- 27
4
votes
2 answers
How does node work with Yarn Plug-n-Play?
Yarn 2.0 is bringing PnP to the table, but I don't really understand how I can run javascript with the simple node command anymore if the file has dependencies in the npm registry. node looks for node_modules folders to find dependencies, but since…

Ozymandias
- 2,533
- 29
- 33
3
votes
2 answers
Error: Prisma schema validation - (get-config wasm) in yarn prisma
I am trying to run Calc.com app.
so I installed pgsql and then cloned calc.com
And I run like this
yarn
and then
yarn workspace @calcom/prisma db-deploy
Reference :Calc.com in Github
But I got error

Bohdan V.
- 115
- 1
- 11
3
votes
2 answers
Unable to install node-canvas on M1 mac
Need help getting node-canvas installed with on an M1 mac. Here is the log.
yarn install
...
➤ YN0000: ┌ Link step
➤ YN0007: │ canvas@npm:2.10.1 must be built because it never has been before or the last one failed
➤ YN0009: │ canvas@npm:2.10.1…

a11hard
- 1,904
- 4
- 19
- 41
3
votes
0 answers
What do the columns in Modern 'yarn upgrade-interactive' mean?
What is the meaning of the column labels displayed by Yarn Modern's yarn upgrade-interactive?
As near as I can tell
"current" means the currently specified range in package.json,
"range" sometimes means the currently available package that matches…

orome
- 45,163
- 57
- 202
- 418
3
votes
1 answer
Cannot find module 'react' or its corresponding type declarations
Today I switched my yarn version from 1.x to 3.x (latest) and I started having issues with the Typescript on my project.
I've seen many people having this same issue but unfortunately none of the solutions provided fixed it.
This is my current…

Alexandre Paiva
- 987
- 2
- 10
- 24