$ appwiz.cpl
启用或关闭 Windows 功能,勾选“适用于 Linux 的 Windows 子系统”,重启。
管理员权限运行powershell
:
$ Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
全局开代理,管理员权限运行cmd:
$ bash
$ sudo su
$ apt-get -y update
$ apt-get install git
$ curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
$ sudo apt-get install -y nodejs
$ sudo apt-get install gcc g++ make
$ curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
$ echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
$ sudo apt-get update && sudo apt-get install yarn
$ sudo apt-get install ruby-full
node-sass
一直报错