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,153
questions
585
votes
9
answers
263k
views
Should I commit the yarn.lock file and what is it for?
Yarn creates a yarn.lock file after you perform a yarn install.
Should this be committed to the repository or ignored? What is it for?
493
votes
5
answers
417k
views
How to clear cache in Yarn?
I am doing some benchmark tests for Facebook's Yarn. For this, I need to clear my global Yarn cache.
Is there a command available for this? I have force-removed my ~/.yarn-cache folder, but this ...
453
votes
25
answers
453k
views
Yarn install command error No such file or directory: 'install'
I am installing sylius bundle and while install sylius I need to run yarn install So
While I run the command:
yarn install
I get the error:
ERROR: [Errno 2] No such file or directory: 'install'
366
votes
26
answers
552k
views
The engine "node" is incompatible with this module
I am getting below yarn error when deploying to AWS:
error [email protected]: The engine "node" is incompatible with this module. Expected version ">=6 <7 || >=8". Got "...
363
votes
6
answers
165k
views
What is the closest to `npm ci` in yarn
In npm, there's a ci command for installing the project with a clean state. In the documentation, it is claimed that:
It can be significantly faster than a regular npm install by skipping
certain ...
324
votes
26
answers
422k
views
'TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined'
I'm working on a project in React and ran into a problem that has me stumped.
Whenever I run yarn start I get this error:
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of ...
306
votes
34
answers
411k
views
error /node_modules/node-sass: Command failed
When I tried install vue store front in my local but when I tried "yarn install" command I get following error. How can I solve this error? How can I solve this error?
error /var/www/html/vue-...
264
votes
24
answers
349k
views
Yarn: How to upgrade yarn version using terminal?
How should yarn be upgraded to the latest version?
262
votes
31
answers
562k
views
How do I uninstall Yarn?
How can I uninstall yarn? I've used it for a react-native project and now whenever I move the code out of index.ios.js or index.android.js it throws an error so I'd like to just use npm but whenever I ...
250
votes
6
answers
117k
views
"You are running create-react-app 4.0.3 which is behind the latest release (5.0.0)" [duplicate]
I got an error while creating a React application. How do I fix it?
248
votes
7
answers
213k
views
How to install package from github repo in Yarn
When I use npm install fancyapps/fancybox#v2.6.1 --save, so fancybox package at v2.6.1 tag will be installed. This behavior is described in docs
I want to ask, how to do this with yarn?
Is this ...
241
votes
31
answers
305k
views
Yarn - There appears to be trouble with your network connection. Retrying
I have been trying to do the quickstart guide for react native, but kept getting this error
There appears to be trouble with your network connection. Retrying...
My connection works just fine.
215
votes
7
answers
64k
views
When to use Yarn over NPM? What are the differences?
What are the differences between Yarn and NPM?
At the time of writing this question I can only find some articles on the Internet showing what's the Yarn equivalent of an NPM command.
Do they have the ...
211
votes
15
answers
298k
views
Yarn global command not working
I'm working with Yarn v0.16.1. If I understand correctly (according to the documentation), yarn global add <package> should be the equivalent of npm install -g <package>. However, when I ...
206
votes
12
answers
258k
views
Yarn - How do I update each dependency in package.json to the latest version?
I have a react app with deprecated dependencies. To make it work, I have to update the dependencies to their newer (but stable) versions.
As per this stakoverflow thread, to update dependencies in ...