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
13 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 ...
1 vote
0 answers
15 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 ...
0 votes
1 answer
13 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' ...
43 votes
8 answers
40k views

getting YN0028 The lockfile would have been modified by this install, which is explicitly forbidden. using yarn berry and heroku

I'm using yarn berry and heroku and consistently getting the error: ➤ YN0028: │ The lockfile would have been modified by this install, which is explicitly forbidden. Which suggests that my ...
2 votes
0 answers
32 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-...
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 ...
0 votes
1 answer
146 views

yarn ts-node-dev requires defining dependency to src folder

Can you help me understand this behavior and share how would you solve this "properly"? I'm running Node.JS (v20.12.2), Yarn (4.1.1), tsc (5.4.5) and have following goals: Run the app ...
0 votes
0 answers
75 views

Creating a new React Project on VS Code [closed]

i'm trying to create a new React project in VS Code but i keep getting this error..I tried Re-installing npm and Node.js and Yarn and clearing cache also I tried changing the folder directory..any one ...
2 votes
2 answers
84 views

Unable to run yarn clasp login

Unable to run yarn clasp login I am not good at English. Please understand. 8> yarn clasp login yarn run v1.22.22 $ C:\Users\myname\Desktop\個人開発プロジェクト\clasp-240418\node_modules\.bin\clasp ...
2 votes
1 answer
2k views

Error when running npm script with Yarn: "ERR spawn EINVAL

I'm encountering an error when trying to run an npm script that involves Yarn. Here's the sequence of events: I've initialized a project with create-react-app. Added the following script to my ...
94 votes
8 answers
180k views

punycode is deprecated in npm - what should I replace it with?

I'm using the npm module punycode in my Angular project. VsCode tells me it's deprecated and https://nodejs.org/api/punycode.html#punycode_punycode confirms: The version of the punycode module ...
-1 votes
0 answers
18 views

Npm vs Yarn on Expo [closed]

On Expo, I heard that PlugnPlay is not supported by Yarn. So there is no reason to use Yarn Berry and hench I don't see any benefits of using Yarn V1 over using npm. Also, I have faced multiple ...
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: │ ...
-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 ...
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 ...

15 30 50 per page
1
2 3 4 5
277