A winter storm warning is in effect for Massachusetts, and communities across the state have cancelled school.