Opdater selve npm For at opdatere selve npm:
1 |
sudo npm install -g npm@next |
Få vist npm’s version:
1 |
npm -version |
npm outdated Vis pakker der er forældet, dvs. udkommet i nyere versioner:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
$ npm outdated Package Current Wanted Latest Location @angular-devkit/build-angular 0.6.8 0.6.8 0.8.3 my-app @angular/animations 6.1.3 6.1.9 6.1.9 my-app @angular/cdk 6.4.6 6.4.7 6.4.7 my-app @angular/cli 6.0.8 6.0.8 6.2.3 my-app @angular/common 6.1.3 6.1.9 6.1.9 my-app @angular/compiler 6.1.1 6.1.9 6.1.9 my-app @angular/compiler-cli 6.1.1 6.1.9 6.1.9 my-app @angular/core 6.1.3 6.1.9 6.1.9 my-app @angular/forms 6.1.3 6.1.9 6.1.9 my-app @angular/http 6.1.3 6.1.9 6.1.9 my-app @angular/language-service 6.1.3 6.1.9 6.1.9 my-app @angular/platform-browser 6.1.3 6.1.9 6.1.9 my-app @angular/platform-browser-dynamic 6.1.3 6.1.9 6.1.9 my-app @angular/pwa 0.6.8 0.6.8 0.8.3 my-app @angular/router 6.1.3 6.1.9 6.1.9 my-app @angular/service-worker 6.1.3 6.1.9 6.1.9 my-app @ng-bootstrap/ng-bootstrap 2.2.2 2.2.2 3.2.2 my-app @ng-select/ng-select 2.5.0 2.9.1 2.9.1 my-app @types/node 10.5.8 10.11.0 10.11.0 my-app jasmine-core 3.1.0 3.1.0 3.2.1 my-app karma 2.0.5 2.0.5 3.0.0 my-app karma-coverage-istanbul-reporter 2.0.1 2.0.4 2.0.4 my-app ng-sidebar 7.3.0 7.3.0 8.0.0 my-app protractor 5.4.0 5.4.1 5.4.1 my-app rxjs 6.2.2 6.3.3 6.3.3 my-app typescript 2.9.2 2.9.2 3.0.3 my-app |
CurrentDen version der pt. er installeret WantedDen version der bør installeres iht. reglerne (semver) i package.json LatestDen senest tilgængelige version Opdater iht. semver Hvis du blot vil opdatere […]