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
330
questions
178
votes
5
answers
178k
views
npm equivalent of yarn resolutions?
Is there an npm equivalent of the yarn resolutions functionality? There is no mention of it in the npm package.json docs.
For example, I want to install [email protected] and one of its dependencies (@lerna/...
179
votes
15
answers
99k
views
error: no template named 'remove_cv_t' in namespace 'std'; did you mean 'remove_cv'?
My problem seems similar to this issue, except it happens when I run yarn install in a rails app.
When I run yarn install, it runs successfully for some time, then
../src/libsass/src/ast.hpp:1614:25: ...
169
votes
19
answers
329k
views
Support for the experimental syntax 'jsx' isn't currently enabled
I'm trying to run very simple code, but I'm getting an error, I didn't use the create react app!
It looks like my babel.config.js file is being ignored!
This is the structure of my small project:
My ...
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.
142
votes
9
answers
155k
views
Why is WSL extremely slow when compared with native Windows NPM/Yarn processing?
I am working with WSL a lot lately because I need some native UNIX tools (and emulators aren't good enough). I noticed that the speed difference when working with NPM/Yarn is incredible.
I conducted a ...
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 "...
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 ...
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?
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 ...
147
votes
3
answers
104k
views
How do I override nested dependencies with `yarn`?
If my package has these dependencies
{ "name": "my-package",
"dependencies": { "foobar":"~1.0.3", "baz":"2.0.9" }
And the foobar package has these dependencies
{ "name": "foobar",
"dependencies"...
11
votes
6
answers
4k
views
Cannot find module coa/compile.js
I'm running yarn in a project created with create-react-app, but I'm getting this error:
Exit code: 1
Command: start /B node compile.js & node compile.js
Arguments:
Directory: uber-web/...
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'
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-...
188
votes
15
answers
224k
views
Module not found: Error: Can't resolve 'core-js/es6'
I've got a problem with my build process in relation to my React app.
I always get the following error:
Module not found: Error: Can't resolve 'core-js/es6'
if I use this in a polyfill.js:
import '...
137
votes
3
answers
86k
views
When installing packages with Yarn, what does "incorrect peer dependency" mean?
I've just cloned a repo, which recommends the use of Yarn to install dependencies. When I run yarn install, it seems to be okay, but it provides this warning:
yarn install v0.20.3
[1/4] 🔍 Resolving ...