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.

Yarn is a fast, reliable and secure package manager for Node.js and JavaScript projects, which is compatible with the npm package registry. It aims to avoid the issues caused by npm, such as non-deterministic installations, complex dependency trees, and unreliable package combinations.

Yarn takes inspiration from Cargo, the Rust package manager, and Bundler, a Ruby tool.

The majority of packages created with npm (version 3) should be compatible with Yarn and the node_modules directory produced should satisfy all dependencies.

When should I use ?

Use when your question directly relates to Yarn. Questions about package installation issues, or Yarn's performance are in the scope of this tag and are welcome under .

Don't tag questions just because you use Yarn in your project when it's clearly not relevant to the core of your question. For example, "Why doesn't this if statement work?" is off-topic for this tag even if you used Yarn to set it up. Consider or instead for these questions.

Useful References

Comparison of npm and Yarn commands

  • yarn add = npm install --save
  • yarn global add = npm install --global
  • yarn ls = npm ls
4134 questions
2
votes
2 answers

How to upgrade yarn without node with brew

If we are using nvm or ndenv, we use --ignore-dependencies option when installing yarn with brew for not install node. In this case, how to upgrade yarn? Here are the methods that failed. $ brew upgrade yarn --ignore-dependencies Error: invalid…
2
votes
1 answer

I don't know how to use life cycle in svelte.js

Assumptions I don't know much about the front end. wants to do I want to use life cycle with sveltejs. Error occurred The following error has occurred and the lifecycle method is not available: ERROR in ./node_modules/svelte/index.mjs Module not…
zenzenzenone
  • 169
  • 1
  • 1
  • 9
2
votes
1 answer

vue-cli-service build fails with 0 errors

Is there a way to track down this kind of build problem? I.e. a flag that would show more detailed error information? My project is very much like the default vue cli project. It has been working fine for months until this morning. $…
Steve
  • 883
  • 7
  • 23
2
votes
0 answers

Yarn - How to set Yarn to use cookies

I'm using Yarn behind a corporate proxy. I can successuflly install some packages. But, for some reason, some of then doesn't install and I get the following message in my log: error…
WitnessTruth
  • 539
  • 2
  • 9
  • 27
2
votes
3 answers

Installed the wrong package

I was installing some packages in Linux Ubuntu to begin code some projects in Node.js and react, but I did not follow the instructions on yarn's website, passed on shell only the command line sudo apt-get install yarn. Now, I got a wrong version…
Augusto
  • 21
  • 4
2
votes
1 answer

What is -D option in yarn when adding vuetify

When adding vuetify in docs it says to add -D option. @nuxtjs/vuetify -D What is it for? Is it something related vuetify or yarn?
Abhilash
  • 2,864
  • 3
  • 33
  • 67
2
votes
1 answer

How to upgrade ant-design in project?

I want to user new component from antd, but it added in 3.12.0 and my current version in project reactjs is 3.10.9. So how i can upgrade my antd ?
Nguyễn VŨ
  • 161
  • 2
  • 6
2
votes
1 answer

How to automatically install missing yarn packages?

I'll often run into the following error when starting the server on a Rails project: ======================================== Your Yarn packages are out of date! Please run `yarn install --check-files` to…
Ivar
  • 5,102
  • 2
  • 31
  • 43
2
votes
1 answer

Webpacker can't find application in manifest.json

My app works fine on my workstation but I don't know why it doesn't on my laptop. This is what I get when I go to localhost:3000 Webpacker::Manifest::MissingEntryError at / Webpacker can't find application in…
Maxxx
  • 363
  • 1
  • 6
  • 15
2
votes
1 answer

React-Native - Unable to resolve module fs from node_modules/eslint/lib/cli-engine/cli-engine.js

I have this react-native app that worked just fine, but suddenly I get this error: error: bundling failed: Error: Unable to resolve module `fs` from `node_modules/eslint/lib/cli-engine/cli-engine.js`: fs could not be found within the project. The…
Darius Biro
  • 169
  • 1
  • 3
  • 12
2
votes
0 answers

npm ERR! code ELIFECYCLE npm ERR! errno 126

Firsty I should do npm run build then npm run install, but no matter what to type on the server I am getting this error. sh: 1: react-app-rewired: Permission denied npm ERR! code ELIFECYCLE npm ERR! errno 126 npm ERR!…
2
votes
0 answers

reactide is not setting up in windows 10 causing problems while executing yarn run build

I have recently cloned Reactide from github after executing following commands. git checkout 3.0-release yarn install yarn run build I got following error: $ yarn run build yarn run v1.21.1 $ electron-builder •…
Sanjeev
  • 93
  • 1
  • 5
2
votes
1 answer

I use yarn add, and nodeJS tells me 'cannot find module' for my whole folder

I'm building a login web app. The folder name is 'login' I use yarn add to initialize my project and add all the packages. When I want to run my project with node ., it returns an error: Error: Cannot find module…
ronzenith
  • 341
  • 3
  • 11
2
votes
1 answer

Can "yarn add global " update packages installed by npm?

I use yarn as package-manager but the first time I install nativescript I used; npm install -g nativescript Can I update the package using yarn add global nativescript? NOTE: I run tns package-manager set yarn in my projects folder
Cem Kaan
  • 2,086
  • 1
  • 24
  • 55
2
votes
2 answers

'sed' is not recognized as an internal or external command (Windows 10)

I'm working with a JavaScript app it's running by yarn. I found issue when I run yarn run dev. It's showing below error. yarn run v1.21.1 $ yarn fixlitepicker && rm -rf .cache/ dist/ $ sed -i 's/# sourceMappingURL/ sourceMappingURL/g'…
Rahul
  • 2,011
  • 3
  • 18
  • 31
1 2 3
99
100