npm config set proxy= npm config set registry https://registry.npm.taobao.org npm install -g typescript cnpm install 解决