Allow numeric npm package versions

When passing a package version that parses as a number (e.g. `1.9`), the version should be converted to a string before being concatenated to the package name.
reviewable/pr18780/r1
Nate Smith 9 years ago
parent 39d6066f51
commit b52af2dcb1

@ -131,7 +131,7 @@ class Npm(object):
self.executable = [module.get_bin_path('npm', True)]
if kwargs['version']:
self.name_version = self.name + '@' + self.version
self.name_version = self.name + '@' + str(self.version)
else:
self.name_version = self.name

Loading…
Cancel
Save