Flutter New Project Creation Error 66 pubspec.yaml

Flutter 2.2.1 pubspec.yaml Issue

You can run below command on the command line to create new projects successfully.

IF "%PUB_CACHE%" == "" (
IF EXIST "%pub_cache_path%" SET PUB_CACHE=%pub_cache_path%
)

Source: https://github.com/flutter/flutter/issues/50092