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.
yarnpkg
4,145
questions
-2
votes
0
answers
24
views
Error while Creating docker image, ERROR: failed to solve: process "/bin/sh -c yarn install" did not complete successfully: exit code: 1
ERROR: failed to solve: process "/bin/sh -c yarn install" did not complete successfully: exit code: 1
FROM node:slim
WORKDIR /usr/src/app
COPY package.json yarn.lock ./
RUN yarn install
COPY ...
0
votes
1
answer
13
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) ...
0
votes
0
answers
21
views
Issues with zxing-js/library and Rollup Build: "this" has been rewritten to "undefined"
I'm new to JavaScript and TypeScript and I'm using the zxing-js/library package in my project.
When I try to build my project with Rollup, I'm encountering the following errors:
(!) "this" ...
1
vote
1
answer
41
views
Rails 7 with Import Maps and CSS Bundling: Assets Not Served from /builds Directory
Rails 7 with Import Maps and CSS Bundling: Assets Not Served from /builds Directory
I'm working on a Rails 7 application where I'm using Import Maps for JavaScript and CSS Bundling via Yarn instead of ...
-2
votes
0
answers
21
views
how to call 'preinstall', 'postinstall', 'prepare, in yarn version - 3.6.4
how to call 'preinstall', 'postinstall', 'prepare, in yarn version - 3.6.4
I need to call above yarn lifecycle methods in ym react native app after giving yarn install
0
votes
0
answers
17
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 ...
1
vote
0
answers
31
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 ...
0
votes
0
answers
21
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 ...
1
vote
2
answers
43
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 ...
0
votes
0
answers
7
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 ...
-1
votes
0
answers
30
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, ...
0
votes
0
answers
21
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) ...
-2
votes
1
answer
96
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 ...
0
votes
0
answers
37
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 ...
-1
votes
0
answers
26
views
Running yarn in my project files creates .yarn file in my local project file
While running yarn in my project path's terminal I am getting weird prompts that weren't coming before
and it creates a .yarn file in my project directory. I got this error from last night and am ...