brew is not a windows command. It is mac command. You are using installation procedure for mac. Follow this for windows installation http://ashutoshpandey.in/installing-spree-commerce-on-a-windows-machine/ For installing the imagemagick you can follow this. Link
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.