Skip to main content

All Questions

0 votes
1 answer
65 views

Facing issue while upgrading yarn 1.22.x to 3.8.3 in azure build pipeline

I need to upgrade yarn 1.22.x to 3.8.3 in azure build pipeline. I have modified the pipeline yml file: - task: NodeTool@0 inputs: versionSpec: '16.x' checkLatest: true ...
Arun Singh's user avatar
0 votes
0 answers
18 views

How can I keep standalone lockfiles working in a mono-repo managed by Yarn?

I'm using a monorepo with Yarn workspaces as a means to manage a dozen or so WordPress plugins. Each plugin needs to be able to build (webpack) and deploy independently. The issue happens occasionally ...
m_i_rite's user avatar
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) ...
mitchkman's user avatar
  • 6,570
2 votes
0 answers
33 views

Cannot find type declaration in yarn workspace common packages

Need some help declaring global modules using yarn workspaces. Can't figure out where to put declarations so they work as expected File structure: root/ ├── app/ ├── common/ │ ├── assets/ │ │ ├──...
Karolis's user avatar
  • 46
0 votes
0 answers
38 views

yarn dev hangs on "Linking dependencies"

I have just started working on a reactjs application, and found that I cannot run the app using yarn on localhost at all, as it hangs after reaching "Linking dependencies". I am running this ...
Excalibur 11's user avatar
0 votes
0 answers
45 views

Yarn Error: EPERM: operation not permitted, scandir '/home' MacOS

Why is yarn trying to get into the home directive? Why does it even need to do that? And how to change this moment. I had something happen to yarn, it started trying to run as a different user. I ...
Gelloiss's user avatar
  • 142
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
1 answer
38 views

unable to install npm package from github

I use a workspace into my app "workspaces": [ "firstapp/web", "secondapp" ] Into second app, into package.json I get into dependencies: "anotherapp&...
Vana's user avatar
  • 877
1 vote
1 answer
79 views

How to consolidate various package versions in yarn.lock?

After updating packages in a monorepo (using Turborepo by Vercel) so that all match the same versions, I noticed that there are still differing versions for many packages in yarn.lock file. For ...
Qwerty's user avatar
  • 31.2k
1 vote
0 answers
51 views

Yarn - How do I update specific dependencies in package.json?

Recently I updated nextjs to "next": "^13.5.6",, which broke storybook. This was subsequently fixed and therefore the solution is to also upgrade all storybook related packages. ...
Qwerty's user avatar
  • 31.2k
0 votes
0 answers
151 views

Yarn 3: Hybrid node_modules & pnp - How do local dependencies work?

I followed the instructions for Hybrid PnP + node_modules mono-repo: from the Recipes. Does that support referencing other packages in the same repository from the workspace for which the node-modules ...
mxro's user avatar
  • 6,848
0 votes
0 answers
145 views

How to link a package from a monorepo that is using `yarn workspaces`?

I have a monorepo using yarn workspaces. It is actually the repo of redux-toolkit. I made some modifications on the toolkit package and I would like to test it locally with yarn link in another ...
1mplement1t's user avatar
2 votes
0 answers
765 views

Yarn v3 workspaces with nodeLinker: node-modules doesn't create node_modules/ and can't start packages

Even though I have nodeLinker: node-modules in my yarnrc.yml, it still doesn't create the node_modules folder. It still creates the .pnp.cjs and .pnp.loader.mjs files and the .yarn folder. According ...
joshkarges's user avatar
0 votes
0 answers
61 views

yarn4 global add alternative

recently I have upgraded my repo to Yarn4 from version 1.22.9. I have a following command in docker file RUN yarn global add [email protected] The yarn global commands have been removed from version 2 ...
Sanky's user avatar
  • 397
0 votes
1 answer
539 views

Electron forge make with yarn workspaces

I'm using yarn workspaces to separate code for my electron app. I have 3 workspaces: server - runs a serialport server in the main thread gui - browser code app - defines the configuration for the ...
Joe Jankowiak's user avatar

15 30 50 per page
1
2 3 4 5
16