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
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 ...
1
vote
0
answers
298
views
Getting deasync error when trying to install yarn dependencies
error C:\FOLDER\FOLDER\automatarium\node_modules\deasync: Command failed.
Exit code: 1
Command: node ./build.js
Arguments:
Directory: C:\FOLDER\FOLDER\automatarium\node_modules\deasync
Output:
node:...
0
votes
0
answers
55
views
Yarn Install fail in Dockerfile when using proxy
I've got this build that fails everytime we try to install Yarn, thus I tried to use Yarn set proxy but still without success.
I tried this since am forced to use a proxy with my self-hosted agent:
...
0
votes
1
answer
13
views
Why is yarn producing this undefined error?
I am trying to upgrade eslint-config-airbnb so I run npx install-peerdeps --dev eslint-config-airbnb
But I get the error:
install-peerdeps v3.0.3
It seems as if you are using Yarn. Would you like to ...
0
votes
0
answers
38
views
yarn dev hangs on "Linking dependencies"
I have just started working on a reactjs application, and found that I cannot run the app using yarn on localhost at all, as it hangs after reaching "Linking dependencies". I am running this ...
0
votes
0
answers
34
views
How to solve the Error ”Cannot find package '/progress-rate-calculator/node_modules/casperjs/' imported from /progress-rate-calculator/calculate.js”
I've been creating web scraping slack bot.
When I installed casperjs on yarn, then I ran the program below, I got the error below, that can't find package "casperjs" imported from calculate....
0
votes
2
answers
61
views
Couldn't update node.js on WSL
copying : node/20.12.2
installed : v20.12.2 to /usr/local/bin/node
active : v16.14.2 at /root/.nvm/versions/node/v16.14.2/bin/node
I couldn't use node v20.12.2 in wsl vs code, but I could ...
0
votes
0
answers
45
views
Yarn Error: EPERM: operation not permitted, scandir '/home' MacOS
Why is yarn trying to get into the home directive? Why does it even need to do that? And how to change this moment.
I had something happen to yarn, it started trying to run as a different user. I ...
0
votes
1
answer
155
views
How can I restore Yarn after accidentally deleting the .yarn folder?
After unintentionally deleting the .yarn folder in my home directory, I encountered an error when trying to run the yarn command:
node:internal/modules/cjs/loader:1145
throw err;
^
Error: Cannot ...
0
votes
0
answers
16
views
Accidentlally messed up yarn (Invariant Violation: Expected a key)
I accidentaly typed following command in yarn
yarn config set ""
And now anything I type using yarn I get following error:
Invariant Violation: Expected a key
at invariant (/usr/share/...
0
votes
0
answers
178
views
Could not open cafile: ENOENT: no such file or directory
When I run all kinds of yarn commands like yarn dev/yarn add,it shows me this error message:
Could not open cafile: ENOENT: no such file or directory, open 'E:\Learn_MERN_STACK\with_HMNayem\Full-...
0
votes
0
answers
109
views
Visual Studio Code crash issue "kill-9". Linux Mint
I'm working on a React project built with the Yarn package manager.VsCode crashes periodically with the following error : "The build failed because the process exited too early. This probably ...
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 ...
0
votes
0
answers
43
views
Yarn install errors related to modules and directories
I am a beginner to react and I came across this error when I checked the version of yarn. It was previously worked but I think I have done something to my directories or perhaps removed some files and ...
0
votes
0
answers
59
views
How to debug docker build with yarn
I am having an issue with using node:18-alpine in my Dockerfile (even in the getting-started demo). When I run docker build -t 'getting-started' . I receive the following error:
=> [3/4] COPY . . ...