0

为我的新 Angular 2 项目安装 npm 包时,我遇到了以下问题。

npm ERR! Please include the following file with any support request:
npm ERR!     D:\CR_Automation_UI_POC\POC\npm-debug.log

所以,问题是 npm 无法找到 npm-debug.log 文件,但它已经存在于文件夹中。如何解决这个问题?

Visual Studio Code 控制台窗口的屏幕截图如下 所示

这是我的 package.json 文件

{
  "name": "poc",
  "version": "0.0.0",
  "license": "MIT",
  "scripts": {
    "ng": "ng",
    "start": "ng serve",
    "build": "ng build --prod",
    "test": "ng test",
    "lint": "ng lint",
    "e2e": "ng e2e"
  },
  "private": true,
  "dependencies": {
    "@angular/animations": "^5.2.0",
    "@angular/common": "^5.2.0",
    "@angular/compiler": "^5.2.0",
    "@angular/core": "^5.2.0",
    "@angular/forms": "^5.2.0",
    "@angular/http": "^5.2.0",
    "@angular/platform-browser": "^5.2.0",
    "@angular/platform-browser-dynamic": "^5.2.0",
    "@angular/router": "^5.2.0",
    "core-js": "^2.4.1",
    "rxjs": "^5.5.6",
    "zone.js": "^0.8.19"
  },
  "devDependencies": {
    "@angular/cli": "1.6.8",
    "@angular/compiler-cli": "^5.2.0",
    "@angular/language-service": "^5.2.0",
    "@types/jasmine": "~2.8.3",
    "@types/jasminewd2": "~2.0.2",
    "@types/node": "~6.0.60",
    "codelyzer": "^4.0.1",
    "jasmine-core": "~2.8.0",
    "jasmine-spec-reporter": "~4.2.1",
    "karma": "~2.0.0",
    "karma-chrome-launcher": "~2.2.0",
    "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": "~4.1.0",
    "tslint": "~5.9.1",
    "typescript": "~2.5.3"
  }
}
4

1 回答 1

0

我不认为 CLI 引发的错误是由缺少 debug.log 文件引起的。

如果您选择向您尝试安装的 npm 包的作者提交任何支持请求,它会告诉您包括它node-forge,所以我猜错误可能就在那里。您可以包含 .log 文件吗?

于 2018-02-13T08:48:15.477 回答