为什么这样做,因为node-gyp在windows下怎么都装不上。
1.安装ubutun到windows系统
前往windows商店,搜索ubutun下载安装。关键词:Windows Subsystem for Linux
2.安装node到ubutun
# Adding the NodeSource APT repository for Debian-based distributions repository AND the PGP key for verifying packages
$ curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
# Install Node.js from the Debian-based distributions repository
$ sudo apt-get install -y nodejs
网友评论