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
Filter by
Sorted by
Tagged with
0 votes
0 answers
25 views

Issue with Auto-Import in VSCode Using Yarn Workspaces in a Monorepo Setup

I'm having trouble with the auto-import feature in VSCode not working properly within a monorepo setup that utilizes Yarn workspaces. Despite my setup, the auto-import doesn't suggest imports for ...
CML7's user avatar
  • 11
0 votes
0 answers
10 views

create-next-app error, while running the development server after all files generated by yarn or npm

This is the error that's looks like on the dev server And this is the terminal error Please suggest me possible fixes, why this occurred. i found a fix but this is not a correct way to edit these ...
Mukesh Gupta's user avatar
0 votes
2 answers
15 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
0 answers
15 views

error Error: https://registry.yarnpkg.com/create-next-app.: Not found

error Error: https://registry.yarnpkg.com/create-next-app.: Not found Warning: PowerShell detected that you might be using a screen reader and has disabled PSReadLine for compatibility purposes. If ...
Romil Sharma's user avatar
0 votes
0 answers
26 views

React Build Fails with "Reached Heap Limit" Error in Dockerized Environment*

I'm encountering a "FATAL ERROR: Reached heap limit Allocation failed" error during the build process of my ReactJS project within a Dockerized environment. Environment: ReactJS application ...
tverdo's user avatar
  • 142
-1 votes
1 answer
17 views

node yarn build produces weird question-mark symbols

Running yarn build in some conditions on cicd pipelines, e.g. Jenkins, produces weird hard to read output like this: yarn build:prod [2K[1G[1myarn run v1.22.15[22m ... ��� Browser application ...
Arunas Bart's user avatar
  • 2,160
-1 votes
0 answers
146 views

Problem while running `yarn build:production` on node version: 21

This is what shows in console When i run yarn build:production Node version: 21 Console: yarn run v1.22.22 $ yarn run clean && cross-env NODE_ENV=production ./node_modules/.bin/webpack --mode ...
raiduzzman's user avatar
0 votes
0 answers
10 views

Problems with firebase predeploy script

I have the following predeploy script in as firebase.json file: { "hosting": [ { "target": "frontend", "predeploy": "...
shkfnly's user avatar
  • 350
0 votes
0 answers
16 views

What is the idiomatic way to redirect npm package.json bin path to the bin path of a dependency?

I am authoring an npm package that distributes native binaries. Native binaries are compiled and therefore they are platform specific. To reduce the download burden on consumers, I have split the ...
David Alsh's user avatar
  • 7,273
-1 votes
0 answers
24 views

How to stop `yarn install` to add a new line at the end of package.json file

Run yarn install could append a new line at the end of package.json file. How can I stop it? If it can't be stoped, how can I fail the build if there is a file change during yarn install command? I am ...
Joey Yi Zhao's user avatar
  • 40.4k
0 votes
0 answers
22 views

How do one install UUID in the terminal of Visual Studio Code

I'm trying to install a UUID and link it to my js file so I can be able to generate unique user IDs whenever I want I was already doing my project in Visual Studio Code, so I opened the terminal and ...
Abigail karyah's user avatar
0 votes
0 answers
28 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
  • 819
0 votes
0 answers
17 views

Why npm install give different result folder than yarn install

So I am trying to install specific version of lib-jitsi-meet package with the following commands: npm install "https://github.com/jitsi/lib-jitsi-meet.git#b0356800" yarn add "https://...
Romick's user avatar
  • 163
-1 votes
0 answers
43 views

How to use yarn version4 in a nodejs project

I am trying to use yarn4 in a nodejs project but I failed to setup with corepack following this doc: https://yarnpkg.com/corepack. Below is package.json file: { "name": "test", ...
Joey Yi Zhao's user avatar
  • 40.4k
-1 votes
1 answer
169 views

Why does corepack try to install yarn v1.22 by default when v4.11 is the latest?

I can see corepack about to download yarn v1.22 when I run the yarn command: user@laptop:~/empty-directory$ yarn Corepack is about to download https://registry.yarnpkg.com/yarn/-/yarn-1.22.22.tgz. Do ...
M455's user avatar
  • 13
2 votes
3 answers
902 views

Vercel: This project's package.json defines "packageManager": "[email protected]". However the current global version of Yarn is 1.22.22

I host my Nuxt project on Vercel. Everything was fine until now. From now, all builds are throwing this error: [19:25:54.681] Running "vercel build" [19:25:55.722] Vercel CLI 33.6.1 [19:25:...
Boris Grigorov's user avatar
0 votes
0 answers
14 views

yarn.lock ignoring the ^ (caret) symbol?

So I was reading the the yarn.lock and found this "@types/react@*", "@types/react@^16.13.1 || ^17.0.0", "@types/react@^16.13.1 || ^17.0.0 || ^18.0.0", "@types/react@^...
Novellizator's user avatar
  • 14.2k
0 votes
0 answers
20 views

Creating a yarn dependency resolution for an alias

In package.json I have "dependencies": { "@reduxjs/toolkit": "^1.9.7", "react-redux": "5.0.7", "react-redux8": "npm:react-...
geoffjay's user avatar
  • 393
0 votes
0 answers
23 views

How to parallel run multiple npm scripts in rollup watch mode using yarn workspaces foreach?

I have a React multimodule project. Every module is built with rollup and has its commands defined as "build": "rollup -c", "watch": "rollup -cw" From the main ...
Ale TheFe's user avatar
  • 1,631
0 votes
1 answer
40 views

Try to setup Backstage.io in AWS linux EC2 Instance Error Shown after run the command npx @backstage/create-app@latest

Error showing while run this command @backstage/create-app@latest JS stacktrace ---> FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory 1: 0xb95be0 node::Abort() [...
Krapanshu's user avatar
2 votes
0 answers
22 views

How to find the installed version of a package using yarn classic?

I've this dependency in my package.json: "@babel/core": "7.13.13" I check this is the installed version: yarn list --depth 0 --pattern @babel/core yarn list v1.22.19 └─ @babel/...
Camilo's user avatar
  • 6,883
1 vote
2 answers
157 views

Yarn Install hangs while building packages in Bitbucket pipeline

I have an issue with Bitbucket pipelines, I use a very simple one to build a docker image and it worked fine for months. Today it suddenly started hanging during yarn install Here's the dockerfile: ...
P_RIFF's user avatar
  • 11
0 votes
0 answers
769 views

yarn dlx not found. Why?! How to run yarn dlx command?

I installed yarn by brew install yarn i try yarn dlx storybook@latest upgrade result: yarn run v1.22.22 error Command "dlx" not found. info Visit https://yarnpkg.com/en yarn add or yarn ...
Gelloiss's user avatar
  • 133
-1 votes
0 answers
19 views

Not Able to use environment variable in React project

Module not found: Error: Can't resolve 'path' in 'D:\MERS\NextJS\youtube\node_modules\dotenv\lib' BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. This is ...
Manu H N's user avatar
0 votes
1 answer
39 views

Error when running 'yarn install' command in React project: 'The term 'yarn' is not recognized

I'm facing an issue while trying to run the 'yarn install' command in my React project. I've globally installed Yarn (npm install --global yarn), but when I attempt to execute any Yarn command in the ...
Adnan Yağmur's user avatar
0 votes
0 answers
16 views

Importing modules with yarn dlx @yarnpkg/sdks vscode command in latest version of TypeScript does not resolve issue TS2307

I'm using yarn version 3.5.0 and my IDE is using vscode. To tell vscode that I'm using yarn berry, I use the command yarn dlx @yarnpkg/sdks vscode, and it works in TypeScript version 5.0.4, but when I ...
Jiwoo's user avatar
  • 1
0 votes
0 answers
56 views

How to build TypeScript/MJS package compatible with NodeJs?

I try to write a TypeScript/MJS package for NodeJS (v20) application, but face errors like : "exports is not defined in ES module scope" or also "Unexpected token 'export'" or &...
serge's user avatar
  • 14.6k
0 votes
1 answer
88 views

nest start removes my json files from dist

when I build my nestjs application, I need certain json files to be copied to the dist. especially I have an "engines" folder, and I need the json files to be on dist/and prod, as they are ...
serge's user avatar
  • 14.6k
0 votes
0 answers
32 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
  • 30.5k
0 votes
0 answers
42 views

how can i use yarn with PnP in an already angular project?

In my existing angular project, i want to use yarn package manager with PnP instead of the npm. I changed the ng config with: ng config -g cli.packageManager yarn but the problem is when i run the ...
Mohammad Abbasi's user avatar
0 votes
1 answer
24 views

Ubuntu runner does not expand double star

I have the following test command in package.json: "test": "node --test --enable-source-maps --loader ts-node/esm lib/**/*.test.ts && node --test index.test.js" It ...
artemave's user avatar
  • 6,876
1 vote
1 answer
108 views

When I run "anchor test", I am getting this error (for a sample Solana program" [closed]

adithyakrishnaa@AdiLegion:~/myepicproject$ anchor test warning: unused variable: ctx --> programs/myepicproject/src/lib.rs:9:23 | 9 | pub fn initialize(ctx: Context) -> Result<()> { | ...
Adithyakrishna A's user avatar
0 votes
0 answers
22 views

yarn install/add does not install full packages

In my React application, using yarn add <package> or yarn install does not install full packages. Here I'm trying to install @elastic/eui, and most of the components are not present in ...
Horkos's user avatar
  • 301
0 votes
1 answer
444 views

Yarn installs latest version of dependency instead of downloading the one defined in my package.json

When I run the command yarn install, I get this error: error [email protected]: The engine "node" is incompatible with this module. Expected version ">=18". Got "16.20.2&...
vaxne's user avatar
  • 1
0 votes
1 answer
47 views

How to automatically choose package manager based on project? e.g. npm, pnpm or yarn?

I have multiple projects on my laptop. Each project uses a specific package manager: project 1: npm project 2: pnpm project 3: yarn When doing operations on a project I have to remember what package ...
Tom Smykowski's user avatar
0 votes
0 answers
38 views

Workaround to build and install SAP Commerce, Composable Storefront >5.0 on Windows - '..' is not recognized as an internal or external command

During the local build and installation of "SAP Composable Storefront" on my Windows computer, following the video of Mateusz Ostafil (Youtube Link How to build and install SAP Commerce, ...
Santiago Carretero's user avatar
0 votes
0 answers
86 views

yarn install starts failing randomly with tar content of undefined failed

I woke up today to create android and iOS dev builds for my expo managed project and I see this error in the logs. I've tried almost everything and I really need some help now. I deleted my ...
Aldor's user avatar
  • 242
0 votes
0 answers
8 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
  • 30.5k
0 votes
2 answers
68 views

How to install yarn locally without adding any dependencies

Installing yarn using dnf will install several packages on my machine that i don't want. $ sudo dnf install yarnpkg-1.22.19-5.fc37.noarch Last metadata expiration check: 1:08:38 ago on Sat 17 Feb ...
A. K.'s user avatar
  • 36.2k
2 votes
0 answers
63 views

Cannot create a project using yarn in nest

After executing the command "nest new backed", I selected yarn to create the project. The version of yarn is 4.1.0. I tried version 3, but it didn't make any difference. I don't know how to ...
ryuma's user avatar
  • 139
4 votes
1 answer
664 views

require() of ES Module \node_modules\string-width\index.js from \node_modules\wide-align\align.js not supported

`#11 44.55 ERROR require() of ES Module /app/node_modules/string-width/index.js from /app/node_modules/wide-align/align.js not supported. #11 44.55 Instead change the require of index.js in /app/...
Nabeel hussain's user avatar
-1 votes
1 answer
58 views

Docker build arg leaked into build environment

I was using Docker to build some frontend code: FROM docker-server/docker-images/ui/node:20.10.0-alpine AS webpack_build ARG NODE_ENV ARG SENTRY_AUTH_TOKEN WORKDIR /app COPY package* yarn.lock ...
James Lin's user avatar
  • 25.8k
0 votes
0 answers
22 views

An import works in Code, but does not work in `yarn start`

In MS Code this import is not highlighted as an error: import { keccak256 } from "ethers/lib/utils"; but when I try to yarn start, it produces errors. [1] ✘ [ERROR] Could not resolve "...
porton's user avatar
  • 5,434
0 votes
1 answer
28 views

Yarn start or npm start or npm run start don't initialize the application

I started a new react project and started developing, for a period of time everything was fine and running normally. One day after restarting my Windows 10, when I went back to the project and ran the ...
Nickolas Muzzi 's user avatar
0 votes
1 answer
317 views

Error: incorrect data check at Zlib.zlibOnError [as onerror] (node:zlib:189:17)

Im trying to yarn install my local repo and getting the below error in terminal Error: incorrect data check at Zlib.zlibOnError [as onerror] (node:zlib:189:17) This is my machine configuration macOS ...
Ramji's user avatar
  • 53
1 vote
0 answers
137 views

Error installing bcrypt - Error [ERR_REQUIRE_ESM]: require() of ES Module

I am trying to install bcrypt to my NextJs project but I am getting an error. I am using "yarn add bcrypt." Error [ERR_REQUIRE_ESM]: require() of ES Module ...\Portfolio\fo od-ordering\...
Jacqueline's user avatar
0 votes
0 answers
73 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,768
1 vote
1 answer
385 views

Cannot find module `prettier' in VSCode with Yarn PnP (Extensions do not work with YARN PnP)

Since upgrading to Yarn 2+ (Berry), and later Yarn 4 with PnP support, VSCode cannot resolve locations for extensions prettier, eslint and others. In VSCode I receive the following error message: ...
Matt's user avatar
  • 6,024
0 votes
0 answers
110 views

Yarn package error after updating to node@16 using nvm

I am trying to update the node version of my project to the latest version of node 16. I have been using nvm to install and set node version. My system is running on the following versions: > node -...
Lervad's user avatar
  • 159
0 votes
1 answer
23 views

Page doesn't recoginze the export on a React Module when there's actually an export

right now I'm practicing with the Three.js library, but I've been having some trouble with the exports... Here is the App.jsx: import styled from "styled-components" import React from "...
Rebequita's user avatar

1
2 3 4 5
83