Schools in New York and Boston have canceled in-person classes as forecasters predict several inches of snow and powerful winds.