Skip to main content

Questions tagged [yarn-v3]

The tag has no usage guidance.

yarn-v3
0 votes
0 answers
39 views

react native 0.74.2 yarn install error "YN0007: │ com.shiva.test@workspace:. must be built because it never has been before or the last one failed"

react native 0.74.2 yarn install giving following error "YN0007: │ com.shiva.test@workspace:. must be built because it never has been before or the last one failed" also yarn lifecycle ...
S H I V A's user avatar
1 vote
0 answers
40 views

React Native 0.74.2 yarn lifecycle method is not called after running 'yarn install'

How to call lifecycle events of 'yarn install' on react native 0.74.2 and yarn version is 3.6.4 I've added yarn lifecycle methods in my package.json under the scripts section. However, when I run the ...
S H I V A's user avatar
0 votes
0 answers
17 views

Does yarn berry supports execution of uninstall script when removing module

I am facing issue with yarn 3 which was working fine with yarn 1.x. when using yarn 3 , i am adding a local module using yarn add which has some hooks defined in its package.json like as below "...
VikasB's user avatar
  • 49
0 votes
1 answer
240 views

Failure of pod install for the React-native project using Yarn Berry

Simply, I can't install the pod for the react-native project when I use the yarn - Berry or any newer version 3.x or 4.x. Is there anyone who made this work? Thanks! This can be re-introduced by ...
LoveMob's user avatar
  • 426
2 votes
0 answers
505 views

How to download and install packages from (private) artifactory and yarn v4?

In our project we are currently using yarn v1. We are able to download packages from our private registry (artifactory). Our packages are scoped packages, which means our package.json looks like this: ...
Daniel's user avatar
  • 875
0 votes
0 answers
102 views

Create React app yarn 3.6.4 stabile version

I am creating a new React application using yarn 3.6.4. The following commands: corepack enable, yarn init -2 set the packages.json and yarn.lock. with yarn add typeacript, eslint, prettier I defined ...
Developer's user avatar
0 votes
0 answers
65 views

Add a custom registry for a non-scoped package with Yarn 3

I'm trying to use Yarn 3 in my project, but am having an issue with one package that is not scoped and is served from a private Artifactory registry. For the non-scoped package I get ➤ YN0035: │ non-...
user197674's user avatar
0 votes
0 answers
15 views

Symptom An error occurs when yarn is used to manage project package files

I had no problem with [email protected], but when I just updated yarn to the latest version ([email protected]), I ran into this problem and was hoping to ask for help. I searched many articles about yarn ...
sunny's user avatar
  • 11
0 votes
1 answer
86 views

yarn run: can I get the caller path?

I'm using Yarn 3's workspaces. If I have a script in a package.json { "name": "myscripts", "scripts": { "migrate": "./migrate up -m src/migrations&...
Tim Fairbrother's user avatar
1 vote
0 answers
81 views

Yarn 3 how to fix incompatible transitive dependencies?

Say I have a dependency graph like this: root - d1 - d3 (v1.1) `- d2 - d3 (v1.2) and for some reason d3 v1.1 and v1.2 are incompatible (i.e., d1 has to use d3 v1.1, d2 has to use d3 v1.2). Is ...
stackoverflower's user avatar
2 votes
0 answers
262 views

Is there a way to override the same name `npmScopes` inside `.yarnrc.yml`?

Background My organization has two registries of the same name (say my-org); one is public and is hosted via NPM, and the other one is private and hosted in GitHub. Unfortunately, there is no registry ...
aayani's user avatar
  • 393
0 votes
0 answers
46 views

Installed dependencies are not recognized (Yarn v3.5.0)

I installed dependencies using Yarn 3.5.0 and... Cannot find module Could not resolve when i changed package manager to pnpm or npm all it works I tried update, remove and install again all ...
StaSyn's user avatar
  • 1
1 vote
0 answers
262 views

TypeError: The 'compilation' argument must be an instance of Compilation after yarn 3 update

I've been looking into this issue off an on for a few days and I can't find a good path forward. First off I'm attempting to move our monorepo from yarn 1.22 to yarn 3 to increase dependency install ...
TheGRS's user avatar
  • 113
0 votes
1 answer
974 views

Yarn project is using yarn3x and Plug 'N Play but doesn't work without node_modules directory

I'm trying to create a new NestJS project with Yarn as the package manager. After installing NestJS with npm globally (npm install -g @nestjs/cli), I ran npx nest new [package name] --strict, then ...
Nathan Tew's user avatar
3 votes
5 answers
6k views

How do I use Yarn version 3.5 on Github Actions? ("Error: cannot find module ... /yarn-3.5.0.cjs")

On our local machines, we've installed the latest version of Yarn for our node version of 16.17 per the instructions on the Yarn website: corepack enable corepack prepare yarn@stable --activate We ...
Caleb Jay's user avatar
  • 2,098

15 30 50 per page