NPM问题:未运行NPM安装,项目运行,安装,项目在几点上失败

时间:2019-11-05 22:53:09

标签: angular git npm

我继承了一个项目,并且以前的开发人员正在使用该机器,一切似乎都正常,然后开始执行新的UAT,所以我执行标准,安装了一切,项目失败了,Angular8?可能是问题所在,我到处都是关于更改的站点/论坛,@ NewChild需要2个参数,打字稿不能超过3.5,等等,我一生无法使其正常工作。

我查看了我正在使用的开发机器上的副本。一切似乎都合法了。所以我清空了UAT机器,重新开始,但是出于某种原因,我感到沮丧,我安装了core和cli ,但此后我跳过了'npm install'阶段,一切正常。

我查看了开发机上发生的情况,似乎它也从未运行过npm安装。

这怎么工作?为什么npm install会破坏事情?我可能有7或8个软件包失败,node_modules不在git repo中,并且我将该文件夹擦了三次,所以它不能是文件的旧副本。

这里有工作包。

 {
    "name": "fail-app",
    "version": "0.0.0",
    "scripts": {
        "ng": "ng",
        "start": "ng serve --proxy-config proxy.conf.json",
        "build": "ng build",
        "test": "ng test",
        "lint": "ng lint",
        "e2e": "ng e2e"
    },
    "private": true,
    "dependencies": {
        "@angular-devkit/core": "^8.3.5",
        "@angular/animations": "^6.0.3",
        "@angular/cdk": "^6.4.0",
        "@angular/common": "^6.0.3",
        "@angular/compiler": "^6.0.3",
        "@angular/core": "^6.0.3",
        "@angular/flex-layout": "^6.0.0-beta.17",
        "@angular/forms": "^6.0.3",
        "@angular/http": "^6.0.3",
        "@angular/material": "^6.3.3",
        "@angular/platform-browser": "^6.0.3",
        "@angular/platform-browser-dynamic": "^6.0.3",
        "@angular/router": "^6.0.3",
        "@fortawesome/fontawesome-free": "^5.2.0",
        "@ng-bootstrap/ng-bootstrap": "^2.2.0",
        "@ng-idle/core": "^6.0.0-beta.3",
        "@ng-idle/keepalive": "^6.0.0-beta.3",
        "@ng-select/ng-select": "^2.3.3",
        "@types/chart.js": "^2.7.30",
        "@types/fullcalendar": "^3.8.0",
        "@types/jquery": "^3.3.4",
        "@types/moment": "^2.13.0",
        "angular-2-daterangepicker": "^1.1.48",
        "angular-bootstrap-datetimepicker": "^2.2.1",
        "angular-bootstrap-md": "^6.2.1",
        "angular-font-awesome": "^3.1.2",
        "angular2-datetimepicker": "^1.1.1",
        "angular2-moment": "^1.9.0",
        "angular5-csv": "^0.2.10",
        "angular5-time-picker": "^1.0.8",
        "bootstrap": "^4.1.3",
        "bootstrap-menu": "^1.0.14",
        "chart.js": "^2.5.0",
        "core-js": "^2.5.4",
        "font-awesome": "^4.7.0",
        "fullcalendar": "^3.6.1",
        "hammerjs": "^2.0.8",
        "jquery-timepicker": "^1.3.3",
        "moment": "^2.22.2",
        "ng-fullcalendar": "^1.6.2",
        "ng-pick-datetime": "^6.0.12",
        "ng-pick-datetime-moment": "^1.0.6",
        "ng-select": "^1.0.0",
        "ng2-smart-table": "^1.3.5",
        "ngx-bootstrap": "^3.0.1",
        "ngx-contextmenu": "^5.0.1",
        "ngx-cookie-service": "^1.0.10",
        "ngx-loading": "^3.0.1",
        "ngx-moment": "^3.1.0",
        "ngx-spinner": "^6.1.2",
        "ngx-toastr": "^8.8.0",
        "open-iconic": "^1.1.1",
        "popper.js": "^1.14.4",
        "rxjs": "^6.2.2",
        "rxjs-compat": "^6.2.2",
        "timepicker": "^1.11.12",
        "zone.js": "^0.8.26"
    },
    "devDependencies": {
        "@angular-devkit/build-angular": "~0.6.8",
        "@angular/cli": "^6.1.1",
        "@angular/compiler-cli": "^6.0.3",
        "@angular/language-service": "^6.0.3",
        "@types/jasmine": "~2.8.6",
        "@types/jasminewd2": "~2.0.3",
        "@types/node": "^10.5.4",
        "angular2-template-loader": "^0.6.2",
        "codelyzer": "~4.2.1",
        "html-webpack-plugin": "^3.2.0",
        "jasmine-core": "~2.99.1",
        "jasmine-spec-reporter": "~4.2.1",
        "karma": "~1.7.1",
        "karma-chrome-launcher": "~2.2.0",
        "karma-coverage-istanbul-reporter": "~2.0.0",
        "karma-jasmine": "~1.1.1",
        "karma-jasmine-html-reporter": "^0.2.2",
        "ng2-completer": "^2.0.8",
        "protractor": "~5.3.0",
        "raw-loader": "^0.5.1",
        "ts-loader": "^4.3.0",
        "ts-node": "~5.0.1",
        "tslint": "~5.9.1",
        "typescript": "^2.7.2"
    }
}

有想法吗?

0 个答案:

没有答案