Questions tagged [yarn-v2]
255 questions
47
votes
3 answers
Command not found: corepack when installing Yarn on Node v17.0.1
I'm following the Yarn installation instructions on Yarn's website (https://yarnpkg.com/getting-started/install). Those instructions say that on Node version 16.10.0 and higher you can install Yarn by enabling corepack with the following…

Stud Sterkel
- 883
- 1
- 8
- 17
27
votes
4 answers
How to configure VSCode to run Yarn 2 (with PnP) powered TypeScript
How to configure VSCode to run Yarn 2 (with PnP) powered TypeScript
I like to use Yarn 2 (with PnP) and a few months ago I setup a project for which it worked fine. Now I tried to setup a fresh project, but whatever I try, I cannot get VSCode to…

Matthijs Steen
- 686
- 1
- 7
- 14
25
votes
2 answers
Yarn berry error: must be built because it never has been before or the last one failed
I upgraded our project to yarn berry recently. Still using node_modules with nodeLinker: node-modules.
When running 'yarn' command i see below errors:
➤ YN0000: ┌ Link step
➤ YN0007: │ core-js@npm:2.6.12 must be built because it never has been…

akhil
- 277
- 3
- 8
21
votes
4 answers
Running Cypress on WSL
I'm trying to run cypress on a WSL with Ubuntu, this is what I'm getting:
$ cypress run
[29023:1018/155130.159647:ERROR:bus.cc(392)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or…

Bernardo Marques
- 925
- 2
- 10
- 33
17
votes
5 answers
Yarn 2 init, add failing
I'm experimenting with yarn 2 and faceplanting.
I created a new folder: /projects/yarn2/
As per their install guide https://yarnpkg.com/getting-started I ran
cd /projects/yarn2/
yarn set version berry
yarn init
then (as per their guide…

Dan Pouliot
- 375
- 2
- 7
- 21
13
votes
2 answers
Yarn 2 workspaces not installing dependencies
I'm testing out setting up yarn 2 workspaces. I think I've done it the way I'm supposed to, but when I run yarn install from the root it doesn't install any modules nor does it create the symplink to dependencies as expected. I have the following…

LoneWolfPR
- 3,978
- 12
- 48
- 84
11
votes
1 answer
Sharing typescript code between two projects in a monorepo with yarn 2 workspaces
I want to set up a project with a client part (react-app), a server part (express) and a shared library (utils) in typescript. I use yarn 2 workspaces and wanted to avoid using larna (if possible). Unfortunately, I have not been able to make it work…

Thomas Dunkel
- 181
- 1
- 7
10
votes
0 answers
Gets ENOTDIR error when yarn start for expo project
I activated yarn by following yarn official docs (https://yarnpkg.com/getting-started/install)
I created an expo app with yarn by following react native official docs (https://reactnative.dev/docs/environment-setup)
But when I run yarn start I get…

minseokk
- 123
- 3
9
votes
2 answers
How to use Create React App using Yarn 2?
In yarn v1 we initialize create react app using yarn create react-app my-app. How to initialize the same in yan v2.
The above command gives the error
Usage Error: No project found in <>
$ yarn run ...

Ramesh
- 13,043
- 3
- 52
- 88
7
votes
5 answers
Expo Error on launching the app. "ApiV2Error: Account not found. "
Good day,
I am using and expo version 5.4.12
I tried running my app I got an error on launch
"ApiV2Error: Account not found.
at ApiV2Client._requestAsync"
anyone who had this issue ? please help me.

mingmingming
- 345
- 2
- 4
- 12
7
votes
2 answers
How in Yarn 2 do I share common dependencies in workspaces?
Mostly the same question as this, but for yarn 2. I put my shared dependencies at the top of the hierarchy. I believe I'm not using PnP currently.
.yarnrc.yaml
nodeLinker: node-modules
yarnPath: .yarn/releases/yarn-2.2.2.cjs
at the very top level I…

xenoterracide
- 16,274
- 24
- 118
- 243
6
votes
1 answer
Cannot activate yarn
I'm following yarn installation doc. When I run corepack prepare yarn@stable --activate, I'm getting Usage Error: Invalid package manager specification in CLI arguments; expected a semver version. Anyone know what's up?

passionateLearner
- 722
- 1
- 7
- 19
6
votes
0 answers
Run script before installing packages with nodeLinker set to node-modules
I have to run a script (from my package.json file) before I run yarn install. The script sets up the configuration for a private package. In my .yarnrc.yml, I have nodeLinker: node-modules (and I want to keep it that way because I get other errors…

Nate
- 7,606
- 23
- 72
- 124
5
votes
1 answer
Github Actions Build fails for Nextjs giving :Error: error:0308010C:digital envelope routines::unsupported
GitHub Actions Build fails for the Nextjs, I have the following GitHub workflow File :
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
# A workflow run is made up of one or more jobs that can run sequentially or in…

Sadaf Sid
- 1,510
- 3
- 17
- 30
5
votes
1 answer
npm:relocation error: /lib64/libnode.so.93: symbol FIPS_selftest, version OPENSSL_1_1_0g not defined in file libcrypto.so.1.1 with link time reference
after installing nodejs, npm and yarn via yum install command whenever I try to run npm command I get the following error
node: relocation error: /lib64/libnode.so.93: symbol FIPS_selftest, version OPENSSL_1_1_0g not defined in file libcrypto.so.1.1…

Dimitar Dimov
- 91
- 2
- 7