![]() Specifying an explicit version of a library also helps to keep everyone on the same exact version of a package, so that the whole team runs the same version until the package.json file is updated. Or a bug in the latest release of a lib, still unfixed, is causing an issue. Many times you’ll find that a library is only compatible with a major release of another library. In addition to plain downloads, npm also manages versioning, so you can specify any specific version of a package, or require a version higher or lower than what you need. ![]() You can specify a single package to update as well: npm update Versioning Npm will check all packages for a newer version that satisfies your versioning constraints. Updating is also made easy, by running npm update The difference is mainly that devDependencies are usually development tools, like a testing library, while dependencies are bundled with the app in production. -save-dev installs and adds the entry to the package.json file devDependencies.-save installs and adds the entry to the package.json file dependencies (default as of npm 5).Often you’ll see more flags added to this command: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |