Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linking dependencies takes an extreme amount of time for basic yarn add operations in Yarn 1.13.0 #7083

Open
lukeify opened this issue Mar 5, 2019 · 2 comments

Comments

@lukeify
Copy link

lukeify commented Mar 5, 2019

Do you want to request a feature or report a bug?

Bug.

What is the current behavior?

yarn add with any package takes over 5 minutes to "Link dependencies" in a fairly standard Angular project.

yarn add codelyzer --dev

[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 🔨  Building fresh packages...

Final time taken:

screen shot 2019-03-06 at 11 24 38 am

If the current behavior is a bug, please provide the steps to reproduce.

With the following package.json file, ~52,000 entities need to be linked, in a process that can take anywhere from 300 seconds to 600 seconds. I am not currently utilising offline cache, nor should I have to.

{
  "name": "erp",
  "version": "20180306",
  "scripts": {
    "ng": "ng",
    "start": "ng serve --proxy-config proxy.config.json",
    "build": "ng build",
    "lint": "ng lint"
  },
  "private": false,
  "dependencies": {
    "@angular/animations": "^7.2.6",
    "@angular/common": "^7.2.6",
    "@angular/compiler": "^7.2.6",
    "@angular/core": "^7.2.6",
    "@angular/forms": "^7.2.6",
    "@angular/http": "^7.2.6",
    "@angular/platform-browser": "^7.2.6",
    "@angular/platform-browser-dynamic": "^7.2.6",
    "@angular/router": "^7.2.6",
    "chart.js": "^2.7.2",
    "core-js": "^2.5.4",
    "flexboxgrid": "^6.3.1",
    "primeicons": "^1.0.0",
    "primeng": "^7.0.5",
    "rxjs": "^6.0.0",
    "tslib": "^1.9.0",
    "zone.js": "^0.8.26"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "~0.13.0",
    "@angular/cli": "^7.3.3",
    "@angular/compiler-cli": "^7.2.6",
    "@angular/language-service": "^7.2.6",
    "@angularclass/hmr": "^2.1.3",
    "@types/chart.js": "^2.7.35",
    "@types/googlemaps": "^3.30.10",
    "@types/node": "~10.1.4",
    "http-proxy-middleware": "^0.18.0",
    "ts-node": "~5.0.1",
    "tslint": "~5.9.1",
    "typescript": "3.2.4"
  }
}

What is the expected behavior?

I would expect this level of sluggishness when installing all packages for the first time, but not for a minor yarn add operation.

Please mention your node.js, yarn and operating system version.

macOS 10.14.3
node 11.10.1
yarn 1.13.0

@ArcanoxDragon
Copy link
Contributor

Do you have any anti-malware (including Windows Defender) installed/enabled?

@lukeify
Copy link
Author

lukeify commented Mar 15, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants