未完成的对等依赖关系npm

时间:2017-04-10 09:05:27

标签: angular npm-install

我知道这个问题已被问过很多,但没有一个解决方案正在为我解决...所以我从角度2更新到角度4 ...并且一切都在我的应用程序中按预期工作..但每当我尝试安装一个新软件包,例如,如果我尝试运行命令+-- UNMET PEER DEPENDENCY @angular/common@4.0.1 +-- UNMET PEER DEPENDENCY @angular/compiler@4.0.1 +-- UNMET PEER DEPENDENCY @angular/core@4.0.1 +-- UNMET PEER DEPENDENCY @angular/forms@4.0.1 +-- UNMET PEER DEPENDENCY @angular/platform-browser@4.0.1 +-- UNMET PEER DEPENDENCY @angular/platform-browser-dynamic@4.0.1 +-- @types/datatables.net@1.10.1 +-- UNMET PEER DEPENDENCY bootstrap@4.0.0-alpha.5 `-- UNMET PEER DEPENDENCY extraneous error: ENOENT: no such file or directory, open 'C:\Apoorv\Grails_Projects\ang2gra3\client\node_modules\node-sass\package.j son 我收到以下消息

ng -v

但我已经安装了它提到的依赖项,所以我不明白为什么我在安装软件包时遇到此错误。以下是我运行命令C:\Apoorv\Grails_Projects\ang2gra3\client>ng -v @angular/cli: 1.0.0 node: 6.10.0 os: win32 x64 @angular/common: 4.0.1 @angular/compiler: 4.0.1 @angular/core: 4.0.1 @angular/forms: 4.0.1 @angular/http: 4.0.1 @angular/platform-browser: 4.0.1 @angular/platform-browser-dynamic: 4.0.1 @angular/router: 4.0.1 @angular/animations: 4.0.1 @angular/cli: 1.0.0 @angular/compiler-cli: 4.0.1 @ngtools/webpack: 1.3.0

时得到的结果
{
  "name": "ang2gra3",
  "version": "0.0.0",
  "license": "MIT",
  "angular-cli": {},
  "scripts": {
    "start": "ng serve",
    "lint": "tslint \"src/**/*.ts\"",
    "test": "ng test --watch=false",
    "pree2e": "webdriver-manager update",
    "e2e": "protractor"
  },
  "private": true,
  "dependencies": {
    "@angular/common": "^4.0.1",
    "@angular/compiler": "^4.0.1",
    "@angular/core": "^4.0.1",
    "@angular/forms": "4.0.1",
    "@angular/http": "4.0.1",
    "@angular/platform-browser": "latest",
    "@angular/platform-browser-dynamic": "4.0.1",
    "@angular/router": "latest",
    "@ng-bootstrap/ng-bootstrap": "1.0.0-alpha.11",
    "angular-datatables": "^2.3.0",
    "bootstrap": "4.0.0-alpha.5",
    "core-js": "^2.4.1",
    "datatables.net": "^1.10.13",
    "datatables.net-dt": "^1.10.13",
    "jquery": "^3.2.1",
    "ng2-bs3-modal": "^0.10.4",
    "rxjs": "5.3.0",
    "ts-helpers": "^1.1.1",
    "zone.js": "^0.8.5"
  },
  "devDependencies": {
    "@angular/animations": "^4.0.1",
    "@angular/cli": "^1.0.0",
    "@angular/common": "^4.0.1",
    "@angular/compiler": "^4.0.1",
    "@angular/compiler-cli": "^4.0.1",
    "@angular/core": "^4.0.1",
    "@ngtools/webpack": "^1.3.0",
    "@types/datatables.net": "^1.10.1",
    "@types/jasmine": "2.5.38",
    "@types/jquery": "^2.0.41",
    "@types/node": "^6.0.42",
    "babel-core": "^6.24.1",
    "babel-loader": "^6.4.1",
    "codelyzer": "~1.0.0-beta.3",
    "css-loader": "^0.28.0",
    "datatables.net": "^1.10.13",
    "datatables.net-dt": "^1.10.13",
    "jasmine-core": "2.5.2",
    "jasmine-spec-reporter": "2.5.0",
    "karma": "1.2.0",
    "karma-chrome-launcher": "^2.0.0",
    "karma-cli": "^1.0.1",
    "karma-jasmine": "^1.0.2",
    "karma-remap-istanbul": "^0.2.1",
    "protractor": "4.0.9",
    "rxjs": "^5.3.0",
    "ts-node": "1.2.1",
    "tslint": "3.13.0",
    "typescript": "^2.2.1",
    "webdriver-manager": "10.2.5",
    "zone.js": "^0.8.5"
  }
}

下面是我的package.json的样子。

的package.json

no input

任何帮助都将不胜感激。

0 个答案:

没有答案