How can i install jspdf ??
F:\project\jobs-fair\recruiter-webapp\angularApp>npm install jspdf --save
F:\project\jobs-fair\recruiter-webapp\angularApp +-- UNMET PEER DEPENDENCY @angular/[email protected] +-- UNMET PEER DEPENDENCY @angular/[email protected] `-- [email protected]
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.1.2 (node_modules\watchpack\node_modules\chokidar\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.1.2 (node_modules\webpack-dev-server\node_modules\chokidar\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) npm WARN [email protected] requires a peer of @angular/core@^2.0.0||^4.0.0 but none was installed. npm WARN [email protected] requires a peer of @angular/http@^2.0.0||^4.0.0 but none was installed.
package.json
"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",
"@types/jspdf": "^1.1.31",
"angular2-jwt": "^0.2.3",
"angular2-moment": "^1.8.0",
"core-js": "^2.4.1",
"jspdf": "^1.3.5",
"jspdf-autotable": "^2.3.2",
"ngx-pagination": "^3.1.0",
"pdfjs-dist": "^2.0.480",
"rxjs": "^5.5.6",
"xlsx": "^0.12.7",
"zone.js": "^0.8.19"
},
UNMET PEER DEPENDENCY @angular/[email protected]
means you need to update your package.json to reference the @Angular packages at version 5.2.9 e.g."@angular/animations": "^5.2.9"
. I would recommend updating ALL of the @angular packages to 5.2.9 – Simply Ged