memberlkak.blogg.se

Npm update command
Npm update command










But it is your program's responsibility to handle the lack of the dependency.

npm update command

The difference between devDependencies and dependencies is that the former contains development tools, like a testing library, while the latter is bundled with the app in production.Īs for the optionalDependencies the difference is that build failure of the dependency will not cause installation to fail. Shorthands of the flags can also be used:

  • -no-optional will prevent optional dependencies from being installed.
  • -save-optional installs and adds the entry to the package.json file optionalDependencies.
  • -no-save installs but does not add the entry to the package.json file dependencies.
  • -save-dev installs and adds the entry to the package.json file devDependencies.
  • Often you'll see more flags added to this command:

    npm update command

    You can use the package version number to install a specific version, or use the setting to a specific version. Before version 5, you needed to add the flag -save. The NPM package version tracks the version of chromedriver that will be installed, with an additional build number that is used for revisions to the installer. Furthermore, since npm 5, this command adds to the package.json file dependencies.












    Npm update command