安装软件包时NPM安装挂起

时间:2017-09-19 12:32:11

标签: angular npm rxjs npm-install npm-scripts

我目前正在使用一个项目。它工作正常,但当我删除项目文件(除了node_modules)到另一个文件夹或GitHub,通过npm重新安装包时问题不成功。它始终挂在

  

extract:rxjs: sill extract big.js@3.1.3

我试过npm cache verify没有运气。

以下是packages.json

{
  "name": "esas",
  "version": "0.0.0",
  "license": "MIT",
  "scripts": {
    "ng": "ng",
    "start": "ng serve",
    "build": "ng build",
    "test": "ng test",
    "lint": "ng lint",
    "e2e": "ng e2e"
  },
  "private": true,
  "dependencies": {
    "@angular/animations": "^4.2.4",
    "@angular/cdk": "^2.0.0-beta.10",
    "@angular/common": "^4.2.4",
    "@angular/compiler": "^4.2.4",
    "@angular/core": "^4.2.4",
    "@angular/forms": "^4.2.4",
    "@angular/http": "^4.2.4",
    "@angular/material": "^2.0.0-beta.10",
    "@angular/platform-browser": "^4.2.4",
    "@angular/platform-browser-dynamic": "^4.2.4",
    "@angular/router": "^4.2.4",
    "@ng-bootstrap/ng-bootstrap": "^1.0.0-beta.3",
    "angular2-loaders-css": "^1.0.9",
    "angular2-perfect-scrollbar": "^2.0.6",
    "bootstrap": "^4.0.0-beta",
    "core-js": "^2.4.1",
    "material-design-icons": "^3.0.1",
    "node-sass": "^4.5.3",
    "rxjs": "^5.4.2",
    "zone.js": "^0.8.14"
  },
  "devDependencies": {
    "@angular/cli": "1.3.2",
    "@angular/compiler-cli": "^4.2.4",
    "@angular/language-service": "^4.2.4",
    "@types/jasmine": "~2.5.53",
    "@types/jasminewd2": "~2.0.2",
    "@types/node": "~6.0.60",
    "codelyzer": "~3.1.1",
    "jasmine-core": "~2.6.2",
    "jasmine-spec-reporter": "~4.1.0",
    "karma": "~1.7.0",
    "karma-chrome-launcher": "~2.1.1",
    "karma-cli": "~1.0.1",
    "karma-coverage-istanbul-reporter": "^1.2.1",
    "karma-jasmine": "~1.1.0",
    "karma-jasmine-html-reporter": "^0.2.2",
    "protractor": "~5.1.2",
    "ts-node": "~3.2.0",
    "tslint": "~5.3.2",
    "typescript": "~2.3.3"
  }
}

我正在使用:

  • Windows 10
  • 节点版本:8.50

请帮忙解决这个问题。 亲切的问候

1 个答案:

答案 0 :(得分:-1)

解决问题的人

  1. 删除package-lock.json
  2. 删除node_modules文件夹
  3. 再次运行npm install。 (花了30分钟才能完成,但最终做到了)