# 版本信息

我们不会给出每一种软件的详细安装步骤,只会附上参考链接和软件安装完成的版本信息。具体如下:

  • MySQL
mysql --version
# mysql  Ver 14.14 Distrib 8.0.27, for Linux (x86_64) using  EditLine wrapper
  • Python3
python3 --version
# Python 3.7.5

参阅Centos7 安装 Python3.7 详细教程 (opens new window)

WARNING

针对ModuleNotFoundError: No module named '_ctypes'错误:

yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel
  • c++编译环境
yum install gcc gcc-c++

# 前端

  1. Linux
export NVM_NODEJS_ORG_MIRROR=https://npm.taobao.org/mirrors/node/
  1. Windows 在 nvm 的安装路径下,找到 settings.txt,在后面加上这两行
node_mirror: https://npm.taobao.org/mirrors/node/
npm_mirror: https://npm.taobao.org/mirrors/npm/

之后重启终端。

  • nodejs
node --version
v12.2.0

注意:如果 npm 不可用,请参考window 系统下使用 nvm 安装后 node 生效但是 npm 不生效_益达木咸醇的博客-CSDN 博客 (opens new window) 修复,node 对应 npm 版本参照:以往的版本 | Node.js (opens new window),npm 下载镜像:NPM Mirror (opens new window)

  • yarn

国内镜像加速

npm config set registry https://registry.npmmirror.com

下载 yarn

npm install yarn
SASS_BINARY_SITE=http://npm.taobao.org/mirrors/node-sass yarn

在 yarn 命令前添加 SASS_BINARY_SITE=http://npm.taobao.org/mirrors/node-sass 的目的是告诉 yarn 到淘宝的镜像去下载 node-sass 二进制文件。

yarn install

如果遇到提示`node-gyp` 安装错误

yarn global add node-gyp
# 以管理员身份运行powershell或者cmd执行以下指令
npm install --global windows-build-tools

参阅:

  1. 在 windows 下安装 node-gyp - 简书 (opens new window)
  2. node.js - How can I solve error gypgyp ERR!ERR! find VSfind VS msvs_version not set from command line or npm config? - Stack Overflow (opens new window)