Skip to content

npm install hangs at npm-cache\_locks\staging-xxxxx for some repositories #8382

@anurag2361

Description

@anurag2361

Bug Report or Feature Request (mark with an x)

- [x ] bug report -> please search issues before submitting
- [ ] feature request

Versions.

Output from: ng --version. 1.5.0
Windows (7/8/10). Linux (incl. distribution). macOS (El Capitan? Sierra?) Windows 10
node --version - 8.9.0
npm --version - 5.5.1

Repro steps.

  1. Download any Angular app repo
  2. Run npm install

The log given by the failure.

image

Desired functionality.

Mention any other details that might be useful.

It gets stuck at this message for long times and while this time, CPU usage reaches up to 95+%. Note that i installed Angular CLI and it worked just fine. This scenario is also encountered on a hit or miss basis on some repositories. Sometimes it occurs, sometimes not. I cant really make out the cause. I tried running it in PowerShell with administrator, uninstalling and reinstalling nodejs (both 64bit and 32bit versions) and clearing/verifying npm cache. Still the same problem.

For e.g. try with this repo https://github.com/cornflourblue/mean-angular2-registration-login-example

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions