Reputation: 935
I cloned a git repository which I want to run on my PC, the first thing that I did was npm install
but my application was not running even after installing packages.
its my 3rd day I'm trying to run, but still invain, I read many posts regarding packages.json
, npm
usage what are dependencies
etc and other material regarding this.
now when I list the packages there are some packages with UNMET PEER DEPENDENCY
even though I explicitly installed them after my regular npm insall
still they appear as UNMET PEER DEPENDENCY
in my npm list
?
how do I get rid of this, I already read alot of posts, but being a beginner, I've no idea what to do now.
D:\NewState\opticare>npm list -depth=0
[email protected] D:\NewState\opticare
+-- UNMET PEER DEPENDENCY @angular/[email protected]
+-- @angular/[email protected]
+-- UNMET PEER DEPENDENCY @angular/[email protected]
+-- UNMET PEER DEPENDENCY @angular/[email protected]
+-- @angular/[email protected]
+-- UNMET PEER DEPENDENCY @angular/[email protected]
+-- UNMET PEER DEPENDENCY @angular/[email protected]
+-- @angular/[email protected]
+-- UNMET PEER DEPENDENCY @angular/[email protected]
+-- UNMET PEER DEPENDENCY @angular/[email protected]
+-- @angular/[email protected]
+-- @auth0/[email protected]
+-- @ng-bootstrap/[email protected]
+-- @swimlane/[email protected]
+-- @types/[email protected]
+-- @types/[email protected]
+-- @types/[email protected]
+-- @types/[email protected]
+-- @types/[email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- UNMET PEER DEPENDENCY [email protected]
+-- [email protected]
+-- [email protected]
+-- UNMET PEER DEPENDENCY tslint@^5.0.0
+-- [email protected]
+-- [email protected]
+-- [email protected]
`-- [email protected]
npm ERR! peer dep missing: @angular/animations@^6.0.0, required by [email protected]
npm ERR! peer dep missing: @angular/common@>=6.0.0, required by @auth0/[email protected]
npm ERR! peer dep missing: @angular/common@^6.1.0, required by @ng-bootstrap/[email protected]
npm ERR! peer dep missing: @angular/common@^6.0.0, required by [email protected]
npm ERR! peer dep missing: @angular/common@^6.0.0-rc.0 || ^6.0.0, required by [email protected]
npm ERR! peer dep missing: @angular/common@^6.0.0, required by [email protected]
npm ERR! peer dep missing: @angular/compiler@^6.0.0, required by [email protected]
npm ERR! peer dep missing: @angular/core@^6.1.0, required by @ng-bootstrap/[email protected]
npm ERR! peer dep missing: @angular/core@^6.0.0, required by [email protected]
npm ERR! peer dep missing: @angular/core@^6.0.0-rc.0 || ^6.0.0, required by [email protected]
npm ERR! peer dep missing: @angular/core@^6.0.0, required by [email protected]
npm ERR! peer dep missing: @angular/forms@^6.1.0, required by @ng-bootstrap/[email protected]
npm ERR! peer dep missing: @angular/forms@^6.0.0, required by [email protected]
npm ERR! peer dep missing: @angular/platform-browser@^6.0.0, required by [email protected]
npm ERR! peer dep missing: @angular/platform-browser-dynamic@^6.0.0, required by [email protected]
npm ERR! peer dep missing: rxjs@^6.0.0, required by @ng-bootstrap/[email protected]
npm ERR! peer dep missing: rxjs@^6.1.0, required by [email protected]
npm ERR! peer dep missing: rxjs@^6.1.0, required by [email protected]
npm ERR! peer dep missing: tslint@^5.0.0, required by [email protected]
npm ERR! peer dep missing: rxjs@^6.0.0, required by @ng-bootstrap/[email protected]
npm ERR! peer dep missing: rxjs@^6.1.0, required by [email protected]
npm ERR! peer dep missing: rxjs@^6.1.0, required by [email protected]
npm ERR! peer dep missing: rxjs@^6.0.0, required by @ng-bootstrap/[email protected]
npm ERR! peer dep missing: rxjs@^6.1.0, required by [email protected]
npm ERR! peer dep missing: rxjs@^6.1.0, required by [email protected]
npm ERR! peer dep missing: rxjs@^6.0.0, required by @ng-bootstrap/[email protected]
npm ERR! peer dep missing: rxjs@^6.1.0, required by [email protected]
npm ERR! peer dep missing: rxjs@^6.1.0, required by [email protected]
npm ERR! peer dep missing: rxjs@^6.0.0, required by @ng-bootstrap/[email protected]
npm ERR! peer dep missing: rxjs@^6.1.0, required by [email protected]
npm ERR! peer dep missing: rxjs@^6.1.0, required by [email protected]
npm ERR! peer dep missing: typescript@~2.7.1 || >=2.8.0-dev || >=2.9.0-dev || ~3.0.0 || >=3.0.0-dev || >=3.1.0-dev || >= 3.2.0-dev || >= 3.3.0-dev, required by [email protected]
D:\NewState\opticare>
and here is my package.json
file
{
"name": "opticare",
"version": "0.0.0",
"license": "MIT",
"angular-cli": {},
"scripts": {
"build": "ng build",
"ng": "ng",
"start": "ng serve",
"test": "ng test",
"pree2e": "webdriver-manager update --standalone false --gecko false",
"e2e": "protractor"
},
"private": true,
"dependencies": {
"@angular/animations": "^5.2.0",
"@angular/common": "^5.2.0",
"@angular/compiler": "^5.2.0",
"@angular/compiler-cli": "^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",
"@auth0/angular-jwt": "^2.0.0",
"@ng-bootstrap/ng-bootstrap": "^3.2.2",
"@swimlane/ngx-charts": "^7.4.0",
"angular-archwizard": "^3.0.0",
"angular-datatables": "^6.0.0",
"angular2-csv": "^0.2.5",
"angular2-spinner": "^1.0.10",
"bcrypt-nodejs": "0.0.3",
"chalk": "^2.4.1",
"chart.js": "^2.7.2",
"core-js": "^2.4.1",
"cron": "^1.3.0",
"datatables.net": "^1.10.19",
"datatables.net-dt": "^1.10.19",
"express": "^4.16.3",
"file-saver": "^1.3.8",
"googleapis": "^35.0.0",
"http-errors": "^1.6.3",
"install-peerdeps": "^2.0.1",
"jodit-angular": "^1.0.59",
"jquery": "^3.3.1",
"jsonwebtoken": "^8.1.0",
"jwt-decode": "^2.2.0",
"lodash": "^4.17.10",
"moment": "^2.22.2",
"moment-timezone": "^0.5.21",
"mongoose": "^5.2.4",
"mongoose-paginate": "^5.0.3",
"multer": "^1.3.0",
"ng2-nouislider": "^1.7.7",
"ngx-bootstrap": "^2.0.3",
"ngx-chips": "^1.9.2",
"ngx-toastr": "^6.4.0",
"node-cron": "^1.2.1",
"node-sass": "^4.9.2",
"nodemailer": "^4.6.8",
"nouislider": "^11.0.3",
"rxjs": "^5.5.12",
"shortid": "^2.2.8",
"ts-helpers": "^1.1.1",
"twilio": "^3.19.2",
"typescript": "^2.4.2",
"xlsx": "^0.13.0",
"zone.js": "^0.8.19"
},
"devDependencies": {
"@angular/cli": "^1.7.4",
"@angular/compiler-cli": "^5.2.0",
"@types/datatables.net": "^1.10.12",
"@types/jasmine": "~2.8.3",
"@types/jquery": "^3.3.4",
"@types/node": "~6.0.60",
"@types/systemjs": "^0.20.5",
"codelyzer": "^4.0.1",
"jasmine-core": "~2.8.0",
"jasmine-spec-reporter": "~4.2.1",
"karma-chrome-launcher": "~2.2.0",
"karma": "^2.0.4"
}
}
Upvotes: 1
Views: 2501
Reputation: 85
Install the repositories that are UNMET
one by one, npm audit
runs automatically in background as soon as you install any package.
Make the version in your package.json
according to your npm audit
Upvotes: 1