8/31/2023 0 Comments Npm update package![]() ![]() Max number of concurrent HTTP requests to registry. (default: 10)įilepath for the cache file. Default -cacheFile is ~/.ncu-cache.json and default -cacheExpiration is 10 minutes.Ĭlear the default cache, or the cache file specified by -cacheFile.Ĭache expiration in minutes. cacheĬache versions to a local cache file. Options that take no arguments can be negated by prefixing them with -no-, e.g. Options are merged with the following precedence: "Less than" is replaced with a wildcard:.Range operators are preserved and the version is updated:.Direct dependencies are updated to the latest stable version:.Ncu "/^(?!react-).*$/ " # windows How dependency updates are determined When package names are specified, only those packages will be upgraded. Optionally, one or more package names can be specified. The yarn.lock file will be recreated as well. Ncu -f "chalk mocha react " # upgrade packages that do not start with "react-". This command updates dependencies to their latest version based on the version range specified in the package.json file. Ncu "/^react-.*$/ " # upgrade everything except nodemon # upgrade packages that start with "react-"
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |