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.
This commit is contained in:
parent
39d6066f51
commit
b52af2dcb1
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue