项目地址:https://github.com/liyasthomas/postwoman
安装步骤:
- Clone this repo with git.
- Install dependencies by running
npm install
within the directory that you cloned (probablypostwoman
). - Start the development server with
npm run dev
. - Open development site by going to http://localhost:3000 in your browser.
安装过程中报错处理:
vue项目执行npm install 报错 MSBUILD : error MSB4132: 无法识别工具版本“2.0”。可用的工具版本为 "14.0", "4.0"
出现这个问题的原因就是你电脑的node环境和项目的原版本环境不一致,
解决方法:
1.下载 Visual C++ 2015 Build Tools,安装时,选择自定义安装,勾选系统版本对应的Windows SDKs ,直至安装完毕;
2.下载 Python2.7,安装时,勾选将 Add Python.exe to PATH,即添加至环境变量,直至安装完毕(有则忽略);
3.在报错的项目内,重新执行 npm install --msvs_version 2015 进行安装项目依赖;
4.然后重新安装node-sass
cnpm uninstall node-sass
cnpm install node-sass
或者
npm uninstall node-sass
npm install node-sass