Skip to main content

All Questions

Tagged with
0 votes
2 answers
35 views

Why are my yarn dependencies still listed if I deleted node modules

I have a project I am working on and I accidentally downloaded my packages with yarn after running yarn in the terminal. I deleted the new node_modules folder and then ran yarn list -depth 0 and then ...
MrGod1y's user avatar
0 votes
3 answers
151 views

Strange behavior. Jest gives `Cannot find module` when importing components with absolute paths

My jest config clearMocks: true, rootDir: '../../', cacheDirectory: 'cache', testEnvironment: 'jsdom', modulePaths: [ '<rootDir>' ], setupFilesAfterEnv: [ '<rootDir>/...
alles's user avatar
  • 21
23 votes
4 answers
5k views

Why does Yarn fail with "no candidates found" errors?

For example, I'm trying to upgrade netlify-cli from 17.7.0 to 17.8.1 using yarn upgrade-interactive and the following error happens: ➤ YN0000: · Yarn 4.0.2 ➤ YN0000: ┌ Resolution step ➤ YN0082: │ @...
Marian Klühspies's user avatar
2 votes
0 answers
142 views

Is ~/.yarnrc used by modern Yarn?

I use modern Yarn (v2 or later) as opposed to "classic Yarn" (v1.x) in numerous projects. These projects include a .yarnrc.yml file that is used by modern Yarn. I previously had a number of ...
James's user avatar
  • 739
0 votes
1 answer
97 views

Finding all installed versions of an npm package using the yarn API

My goal is to prevent out-of-order deployment of a back-end and an app. All of the software is written in JavaScript. The back-end interface is wrapped up in a API client npm package, which the app ...
joshuanapoli's user avatar
  • 2,509
0 votes
0 answers
259 views

Next.js NODE_OPTIONS is not compatible with yarn v2

Important info: yarn 2 (berry) Next.js I have a following script to run Next.js app (either next dev or next start), and to initialise Datadog APM tracing: "dev": "NODE_OPTIONS='-r ./...
M.Wasik's user avatar
1 vote
0 answers
271 views

Difference of yarn classic and yarn 3(node_modules) dependency management methods

I'm using yarn 3 workspace with nodelinker: node_modules option. As far as I know, using nodelinker: node_modules manages the library in the same way as yarn classic. what is the difference between ...
Jason's user avatar
  • 21
0 votes
1 answer
534 views

yarn 3 install provides empty node_modules + npx scripts failures

I'm migrating my node repositories to yarn berry (v3) from yarn 1. So had a basic old school package.json and yarn.lock. And only a .yarnrc file to host npmjs token at user home folder. Nothing ...
MathKimRobin's user avatar
  • 1,306
1 vote
0 answers
626 views

How does Yarn install decide whether to throw YN0070 and use node_modules vs PnP?

I have 2 different branches in my project. When I do yarn install in one of them, it starts off with: ➤ YN0070: Migrating from Yarn 1; automatically enabling the compatibility node-modules linker 👍 ....
Nathan Tew's user avatar
2 votes
0 answers
642 views

if I use yarn Error: Segmentation fault: 11

Until just now, yarn ran well, but suddenly a strange error started to appear. If i use this command, yarn run dev Bus error: 10 yarn -v Segmentation fault: 11 enter image description here I tried ...
Jikwan's user avatar
  • 21
-1 votes
1 answer
2k views

Why am I told to install versioned Expo CLI when it's already installed?

When I run expo-cli doctor I get WARNING: The legacy expo-cli does not support Node +17. Migrate to the versioned Expo CLI (npx expo). But when I run yarn expo doctor I get expo doctor is not ...
orome's user avatar
  • 47.7k
2 votes
0 answers
265 views

Prevent dev dependencies in Yarn 3 cache folder with PNP

I am utilizing Yarn 3 with the Plug'n'Play (PNP) feature for zero-installation of the dependencies in my development environment, which works well. However, when I run a production build, the .yarn/...
ashish67's user avatar
  • 182
0 votes
2 answers
1k views

How to use Google Cloud Build with Yarn 2+

How do I use Google Cloud Build with Yarn 2+? Do I need to create my own node image to support this or is there some shorthanded entrypoint like entrypoint: "yarn2" Cloud Build with NodeJs: ...
Maroben's user avatar
  • 45
1 vote
1 answer
701 views

How to add package from sub-directory of monorepo with yarn

I have a fork of the expo monorepo that has changes in only one of the sub-packages (e.g. expo-speech). I want to import only that sub-package in my application. Given these parameters: GitHub ...
gabe's user avatar
  • 1,911
17 votes
3 answers
9k views

Why yarn creates a .pnp.loader.mjs and .pnp.cjs files

I use vite on react, and when i use yarn to "live server" my project two new files are created, .pnp.loader.mjs and .pnp.cjs. What is the purpose of this files? I never see those files, ...
Esteban Sabo's user avatar

15 30 50 per page
1
2 3 4 5
7