0

Playing around with 's semver, most of it seems to translate well to the npm CLI, e.g.:

npm install somepackage@~1.0.0-rc

... will include everything greater than the 1.0 version in the same minor range.

But to include a greater than symbol, e.g.:

npm install somepackage@>=1.0.0-rc

...it blows up the shell because it thinks I'm trying to output to file. I tried wrapping the version in quotes and several other options but to no avail.

brandonscript
  • 68,675
  • 32
  • 163
  • 220

1 Answers1

0

Simple enough, I wasn't really thinking about escaping characters in the shell. Escaping with \ works:

npm install somepackage@\>=1.0.0-rc
brandonscript
  • 68,675
  • 32
  • 163
  • 220