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

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:

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.
