volojs / volo

Create front end projects from templates, add dependencies, and automate the resulting projects
https://volojs.github.io/
Other
1.41k stars 100 forks source link

volo add library/~version causing TypeError: Invalid Version #209

Closed zanona closed 9 years ago

zanona commented 9 years ago

I guess this might be somehow related with semver interpretation?

$ volo add aFarkas/html5shiv/~3.7.0 #note ~
TypeError: Invalid Version: 3.6

$ volo add aFarkas/html5shiv/^3.7.0 #note ^
TypeError: Invalid Version: 3.6

$ volo add aFarkas/html5shiv/3.7.0 #plain version
Downloading: https://codeload.github.com/aFarkas/html5shiv/legacy.zip/3.7.0
AMD dependency name: html5shiv
zanona commented 9 years ago

Another repository returning similar errors:

$ volo install esimakin/twbs-pagination/^1.2.4#jquery.twbsPagination.js
TypeError: Invalid Version: v1.1

$ volo install esimakin/twbs-pagination/~1.2.4#jquery.twbsPagination.js
TypeError: Invalid Version: v1.1

$ volo install esimakin/twbs-pagination/1.2.4#jquery.twbsPagination.js
Downloading: https://raw.githubusercontent.com/esimakin/twbs-pagination/v1.2.4/jquery.twbsPagination.js