項目地址: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