Skip to content

Commit

Permalink
Improve npm version parsing (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
sverdlov93 authored Aug 31, 2023
1 parent d2c19dd commit e5e7bd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/utils/npm.go
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ func GetNpmVersionAndExecPath(log utils.Log) (*version.Version, string, error) {
if err != nil {
return nil, "", err
}
return version.NewVersion(string(versionData)), npmExecPath, nil
return version.NewVersion(strings.TrimSpace(string(versionData))), npmExecPath, nil
}

type PackageInfo struct {
Expand Down

0 comments on commit e5e7bd0

Please sign in to comment.