This article is a mirror article of machine translation, please click here to jump to the original article.

View: 8118|Reply: 2

npm upgrades all dependencies

[Copy link]
Posted on 10/9/2018 2:46:42 PM | | | |
Packages that use npm to manage node can be <name>upgraded to a single package using npm update, and for npm versions greater than 2.6.1, you can use the command:

npm install -g

UpgradeBig picturelocal package.

For example, my element-ui module is currently version 1.3.7, and the latest version is 1.4.1.

But perform

npm update

The update command can only be updated according to the version number marked in the package.js, soEvery time you have to change the version number in the package.js to the latest before it can be updated, it is too troublesome, is of little use. Is there a better way, of course, to efficiently upgrade the plugin npm-check-updates

Installation method:



Check out the latest version




[..................] \ :
@angular-devkit/build-angular   ~0.6.8  →    ~0.8.4
@types/node                     ~8.9.4  →  ~10.11.5
codelyzer                       ~4.2.1  →    ~4.5.0
jasmine-core                   ~2.99.1  →    ~3.2.1
karma                           ~1.7.1  →    ~3.0.0
karma-jasmine-html-reporter     ^0.2.2  →    ^1.3.1
ts-node                         ~5.0.1  →    ~7.0.1
tslint                          ~5.9.1  →   ~5.11.0
typescript                      ~2.7.2  →    ~3.1.1

The following dependencies are satisfied by their declared version range, but the installed versions are behind. You can install the latest versions without modifying your package file by using npm update. If you want to update the dependencies in your package file anyway, run ncu -a.

@angular/animations                 ^6.0.3  →   ^6.1.9
@angular/common                     ^6.0.3  →   ^6.1.9
@angular/compiler                   ^6.0.3  →   ^6.1.9
@angular/core                       ^6.0.3  →   ^6.1.9
@angular/forms                      ^6.0.3  →   ^6.1.9
@angular/http                       ^6.0.3  →   ^6.1.9
@angular/platform-browser           ^6.1.4  →   ^6.1.9
@angular/platform-browser-dynamic   ^6.0.3  →   ^6.1.9
@angular/router                     ^6.0.3  →   ^6.1.9
bootstrap                           ^4.1.1  →   ^4.1.3
popper.js                          ^1.14.3  →  ^1.14.4
rxjs                                ^6.0.0  →   ^6.3.3
@angular/cli                        ^6.1.5  →   ^6.2.4
@angular/compiler-cli               ^6.0.3  →   ^6.1.9
@angular/language-service           ^6.0.3  →   ^6.1.9
@types/jasmine                      ~2.8.6  →   ~2.8.9
@types/jasminewd2                   ~2.0.3  →   ~2.0.5
karma-coverage-istanbul-reporter    ~2.0.0  →   ~2.0.4
protractor                          ^5.4.0  →   ^5.4.1

Run ncu with -u to upgrade package.json
Upgrade

This means that some packages need to be upgraded at this time



You can upgrade them all.

Of course, if all packages are up to date, after executing the NCU it prompts:

All dependencies match the latest package versions :)






Previous:No more entanglement between devDependencies and dependencies
Next:vs code to quickly create a new html file
Posted on 10/9/2018 3:07:07 PM |
See the version that is installed globally



 Landlord| Posted on 12/27/2024 9:56:41 PM |
Node.js Update dependency packages using npm-check-updates
https://www.itsvse.com/thread-10809-1-1.html
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com