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,155
questions
0
votes
1
answer
88
views
Caching yarn and python pip in google cloud build
Currently building with cloud build takes arround 10 minutes (5 minutes frontend, 5 minutes backend). Is there anyway I can cache the yarn install and pip install so the build time cut significantly?
...
0
votes
0
answers
62
views
How to use different yarn versions in separate projects on the same system
I am working on two projects on my Mac OS, let's call them Project1 and Project2.
Project1 uses yarn version 3.1.1
Project2 uses yarn version 1.22.22.
This project has been around for several years, ...
0
votes
0
answers
8
views
Publishing new versions of my package without needing to update package.json with each new version. Caret doesn't work. ^0.0.9 doesn't install 0.0.10
"dependencies": {
"@plugin/my-plugin": "^0.0.9",
}
Above is the version as listed in my package.json. There is also a version 0.0.10. When I do a yarn install, it ...
-1
votes
1
answer
51
views
Is it possible to update a version in a preinstalled ubuntu-latest image in GitHub Actions?
The ubuntu-latest runner in GitHub Actions by default has Yarn v1 according to their docs. I would like to override that to Yarn 4. Is this even possible? If yes, is there a path I should look up to ...
0
votes
1
answer
30
views
yarn add --dev @chainlink/contracts showing error :Permission denied Publickey
**While running yarn add --dev @chainlink/contracts it shows error : Permissions denied: Public Key
Error:
Exit code: 128
Command: git
Arguments: ls-remote --tags --heads ssh://[email protected]/ricmoo/...
0
votes
0
answers
93
views
Unable to install iohook in my node server (error during installation)
I'm trying to add the ability to detect keypress anywhere on my PC, and I saw about iohook.
So I'm installing it with yarn add iohook, though the process always fails because the download link seems ...
0
votes
0
answers
23
views
Yarn rebuilds all packages when running the add command
I am having the following problem with Yarn
Whenever I run the yarn add or yarn remove command all previously installed packages are rebuilt
I have tried with other versions of Yarn but the problem ...
0
votes
0
answers
88
views
How on "yarn install" install dependencies with different yarn versions?
My yarn version is 3.3.1.
On package.json file I have some dependencies, like this:
"dependencies": {
"sampleA": "1.2.3",
"sampleB": "0.0.4"
}
...
0
votes
0
answers
36
views
On Amplify Push getting "Packaging lambda function failed"
I tried amplify push and got the error:
Packaging lambda function failed with the error
Command failed with exit code 1: yarn workspaces focus --production
Unknown Syntax Error: Command not found; ...
2
votes
0
answers
43
views
In my three.js and react project getting error 'TypeError: fetch failed'
I got this error. how can i resolve this?
Parse
TypeError: fetch failed
at node:internal/deps/undici/undici:12618:11
at process.processTicksAndRejections (node:internal/process/task_queues:95:...
0
votes
1
answer
49
views
NPM is choosing incorrect Node.js version for FE solution (on specific pc)
Locally I'm using nvm to manage Node.JS version; current node version is 18.19.0; I don't have ver. 12 installed. Before installing nvm - I have removed Node from computer, now I can't see it in "...
1
vote
2
answers
2k
views
error This project's package.json defines "packageManager": "[email protected]". However the current global version of Yarn is 1.22.22
error This project's package.json defines "packageManager": "[email protected]". However the current global version of Yarn is 1.22.22.
cmd open paste = npm pkg set packageManager="...
0
votes
1
answer
161
views
Windows Error: 'This app can't run on your PC' When Trying to Run a Maven-Built Project
I'm developing a web application using Maven and Angular, and I'm trying to run it on a Windows machine. However, when I attempt to start the application, I encounter the following error message:
This ...
0
votes
0
answers
170
views
yarn get error:Error: ENOENT: no such file or directory
I install node_modules for my project.
yarn
[1/5] 🔍 Validating package.json...
warning knight-operation: "dependencies" has dependency "@testing-library/jest-dom" with range &...
1
vote
1
answer
105
views
Yarn cannot find nodejs especially in VS Code
When I run yarn with PowerShell in VS Code. I got message like this:
yarn
yarn install v1.22.22
$ node preinstall.js
'node' is not recognized as an internal or external command,
operable program or ...