16

Does the command jspm install . update the packages to the latest version?

wonderful world
  • 10,969
  • 20
  • 97
  • 194

2 Answers2

14

jspm install installs the latest versions of packages listed in the package.json respecting semver ranges defined in it. Once installed, exact versions numbers(not ranges) are stored in jspm's config.js. The subsequent jspm installs will install specific versions stored in the config.js. To update packages to the latest version (but still within semver ranges defined in the package.json) one has to run jspm update.

See also:

gronostaj
  • 2,231
  • 2
  • 23
  • 43
Oleksii Rudenko
  • 1,277
  • 12
  • 23
  • `jspm install` will install the version *ranges* specified in `package.json` (in the `jspm` section), not `config.json`. So if you want it to always install a specific version, make sure a single version (not range) is specified in package.json. – David Deutsch Oct 09 '17 at 15:14
1

yes jspm install installs the latest versions of packages defined in the jspm property of the package.json file.

But it exists a command that updates all packages: jspm update, or only one package: jspm update <package>.

See the documentation here: https://github.com/jspm/jspm-cli/blob/master/docs/installing-packages.md#updating-packages

GBL
  • 386
  • 4
  • 13