Skip to main content

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
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/...
adanilev's user avatar
  • 3,278
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: ...
stevec's user avatar
  • 48.4k
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 ...
Manzini's user avatar
  • 1,921
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.
t-doog's user avatar
  • 2,425
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 ...
WrRaThY's user avatar
  • 1,868
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 "...
JN_newbie's user avatar
  • 5,902
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 ...
Fredrick Barrett's user avatar
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?
rlay3's user avatar
  • 10.4k
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 ...
jaredsk's user avatar
  • 2,716
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"...
Chris W.'s user avatar
  • 38.7k
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/...
THIAGO DE BONIS's user avatar
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'
Ricky ponting's user avatar
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-...
Adil's user avatar
  • 3,581
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 '...
Gutelaunetyp's user avatar
  • 2,092
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 ...
shrewdbeans's user avatar
  • 12.3k

15 30 50 per page
1
2 3 4 5
22