7/29/2023 0 Comments Npm update package version![]() A predefined group name ('major' | 'minor' | 'patch' | 'majorVersionZero' | 'none') or a custom string to create your own group. upgradedVersion The upgraded version number returned by the registry. upgradedSpec The upgraded version range that will be written to your package.json. currentSpec The current version range in your package.json. defaultGroup The predefined group name which will be used by default. ncurc.js or when importing npm-check-updates as a module. Useful for piping to npm install.Ĭustomize how packages are divided into groups when using -format group. Infers and displays links to the package's source code repository. Groups packages by major, minor, patch, and major version zero updates. Specify one or more comma-delimited values. Modify the output formatting or show additional information. ncurc.įor the SemVer type definition, see: format Max number of concurrent HTTP requests to registry. (default: 10)įilepath for the cache file. To do the same for all global packages, run npm update -g. To update one global package, run the command npm update -g .![]() Type and enter the code npm outdated -g -depth0 in your command line. 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. To run a major update to global code packages, check if there are global packages that need updating. 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 Ncu -f "chalk mocha react " # upgrade packages that do not start with "react-". Ncu "/^react-.*$/ " # upgrade everything except nodemon # upgrade packages that start with "react-"
0 Comments
Leave a Reply. |