安装后执行:
npm config set prefix "E:\Program Files (x86)\nodejs\node_global"
npm config set cache "E:\Program Files (x86)\nodejs\\node_cache"
配置环境变量:
将E:\Program Files (x86)\nodejs\node_global添加到path中,
安装yarn: npm install yarn -g (C盘中得node_modules不删除,yarn会安装到C盘)