# C++环境准备

82.44上复制环境

\192.168.82.44\MapGIS 10 开发环境\WebClient\env

  1. vs_buildtools__1466874956.1638177422.exe
  2. 安装C++依赖env
  3. 设置npm C++编译器
# 管理员 cmd 或者 powershell
# yarn
yarn config set msvs_version 2017
# npm 
npm config set msvs_version 2017

# 安装windows-build-tool

windows-build-tools (opens new window)

TIP

这一步花费时间极长,请耐心等待,大概下载2G的内容,这一步过了,后面就很容易走通

yarn global add windows-build-tools