Skip to main content

Questions tagged [yarnpkg]

This tag is for Yarn v 1.x. See version-specific tags, as version differences are significant. Yarn is an open-source JavaScript package manager. With Yarn, engineers have access to the npm registry and can install packages quickly, and manage dependencies consistently across machines or in secure offline environments.

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
24 views

"1: This: not found" at any yarn command | NodeJS

I've been trying to setup an environment for a project I was working on windows using WSL. It uses yarn for package management. After setting up everything and installing node, any command with yarn ...
Raihan Rafeek's user avatar
1 vote
2 answers
45 views

Install a TypeScript package from GitHub repository subfolder

I'm using react-select on my ReactJS module, and I needed to make some changes to fit my needs. But now, I'm trying to install my own fork using NPM, and it doesn't work. Error message: Module not ...
William Brochensque junior's user avatar
0 votes
0 answers
11 views

Using the equivalent of yarn offline mirror on yarn berry

We have a setup using yarn offline mirror pointing at a create-no-modify sharepoint. The build server and half the developers use it exclusively and end up fetching all of the packages locally using ...
Joshua's user avatar
  • 42.2k
-1 votes
0 answers
31 views

Yarn does not keep packages installed

I have a problem with Yarn, it does not seem to keep Angular packages. $ ng version Angular CLI: 17.3.8 Node: 20.15.0 Package Manager: yarn 1.22.22 OS: win32 x64 Angular: 17.3.11 ... animations, ...
serge's user avatar
  • 14.8k
0 votes
0 answers
23 views

How to watch node_modules/sdk/src in a vitejs project?

We have a vitejs web project and 3 local sdks (built by vitejs' lib mode). The web project depends on the 3 sdks (through yarn link) CURRRENT SITUATION: Currently we have to start 4 watches (yarn dev) ...
user2990181's user avatar
-2 votes
1 answer
126 views

Yarn adds .yarn and .yarnrc.yml to my repo

Whenever I run yarn install, .yarn/ folder and .yarnrc.yml are added to my repo. I have to manually remove them all the time before commiting in git. How can I prevent this behaviour? Why does this ...
AlbertMunichMar's user avatar
0 votes
0 answers
46 views

Migrating from yarn to pnpm - ENOENT errors in jest tests

I am trying to migrate a yarn based monorepo to pnpm. For the context, the repo contains a shared folder, which most other projects use. We are using Jest v26 with React v17, and node v20. Trying to ...
Frexus's user avatar
  • 150
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
1 answer
593 views

error AggregateError [ECONNREFUSED] at internalConnectMultiple (node:net:1116:18) on yarn install in vue3 project

I'm trying to run yarn install in a Vue project and I receive this error: yarn install v1.22.22 [1/4] Resolving packages... [2/4] Fetching packages... error AggregateError [ECONNREFUSED]: at ...
tao's user avatar
  • 87.7k
0 votes
0 answers
22 views

How to install npm package from private GitHub repo using yarn?

I have npm package in private GitHub repo. How could I install it using yarn v1 in Dockerfile? Without Dockerfile on my machine I use "package_name": "git+ssh://[email protected]/org_name/...
Tarasovych's user avatar
  • 2,358
0 votes
0 answers
88 views

How can I make yarn --silent always?

By default, yarn outputs version and timing info every time you run it: $ yarn yarn install v1.22.22 [1/4] 🔍 Resolving packages... success Already up-to-date. ✨ Done in 0.02s. Is there a better ...
Denis Howe's user avatar
  • 2,284
0 votes
0 answers
29 views

Getting "semantic error TS2339: Property 'hgetall' does not exist on type 'Redis'" when creating a package with ioredis and tsdx

I used npx tsdx to create a basic module. I then added ioredis package. When I use methods like hgetall or del in the package I get this typescript error (typescript) Error: /sample/redis-package/src/...
kheme's user avatar
  • 31
1 vote
0 answers
32 views

Yarn start not working, on mac, I tried uninstalling & installing process completely but still giving error

Yarn start not working, I tried uninstalling & installing process completely but still giving error wingspro@Mac-Pro resident-connect-mobile % yarn start node:internal/modules/cjs/loader:1080 ...
Kishan's user avatar
  • 136

15 30 50 per page