Skip to main content
The 2024 Developer Survey results are live! See the results

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
0 votes
0 answers
11 views

More verbose output of native module build phase during yarn install

My yarn install --frozen-lockfile --verbose is getting hung at what seems to be the native module/gyp build phase and I can't figure out why. I've tried export npm_config_loglevel=verbose before ...
rynop's user avatar
  • 52.5k
1 vote
1 answer
20 views

Yarn PM not working in Windows when the User folder(UserProfile env var) has space in folder name or path

As stated in title, the Yarn PM(package manager), that I just installed in my system(Windows 11 64Bit) doesn't work if there's space(s) in my UserProfile folder path. My User folder name is "...
Vicky Dev's user avatar
  • 2,121
1 vote
0 answers
21 views

How to disable auto-setting of `packageManager` when corepack is enabled

In Node.js, when corepack is enabled, any yarn, pnpm or npm command will auto-set packageManager field in package.json. This is a breaking change for some projects, since having packageManager means ...
Ilia Sidorenko's user avatar
0 votes
1 answer
50 views

Yarn Build Error: TS2305: Module '"web-vitals"' has no exported member 'ReportHandler'

I'm using Yarn as part of an intro to React Testing course through Udemy. I am getting this error when executing yarn build: $ yarn build yarn run v1.22.22 $ react-scripts build Creating an optimized ...
Steve's user avatar
  • 3,197
1 vote
0 answers
35 views

Facing error in yarn install for isolated-vm on macOS

Trying to build Backstage App on my MacOS, one of its pre requisites is Yarn , But i am unsuccessful in trying to install it. Please help I am encountering an error when running yarn install for a ...
vidhi yadav's user avatar
1 vote
1 answer
30 views

Cannot create property 'lastUpdateCheck' on string 'lastUpdateCheck 1713521810483 nodeLinker node-modules ces nodeLinker node-modules'

Got this error after installing the node_modules. TypeError: Cannot create property 'lastUpdateCheck' on string 'lastUpdateCheck 1713521810483 nodeLinker node-modules ces nodeLinker node-modules' ...
Gokulnath Thirukkamu's user avatar
2 votes
0 answers
53 views

npx hanging during initialization of react, expo, and next app

I am currently experiencing an issue where the following commands (and potentially more) hang indefinitely when trying to initialize a project: npx create-react-app npx create-expo-app npx create-...
James's user avatar
  • 21
0 votes
0 answers
18 views

Too many package installation in Expo React Native

This is my current package.json and I am installing packages using yarn. Although I only have these dependencies, it installs over 1000 packages and frequently fails to install and gives ➤ YN0001: │ ...
seans's user avatar
  • 11
-2 votes
0 answers
17 views

Can`t install nodemodules for Mac High Sierra 10.13.6 [closed]

I have spent the whole day trying to solve this problem but I couldn't and I would be very grateful if someone could help me. I use a macbook pro 2011 on high sierra, which is no longer supported, I ...
Pavel Ogaryshev's user avatar
0 votes
0 answers
51 views

Appropriate loader to handle this file type .mjs | webpack

I recently added @radix-ui/react-navigation-menu to my project. However, upon attempting to rebuild, I encountered the following error message: the error.. Interestingly, other components from the ...
AronikTV's user avatar
0 votes
1 answer
67 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
24 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
-2 votes
0 answers
76 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 ...
ASIF KAIF's user avatar
  • 387
0 votes
1 answer
25 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,590
0 votes
0 answers
28 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" ...
Ophir Yaniv's user avatar

15 30 50 per page
1
2 3 4 5
277