1.安裝nodejs
http://66ddx.pc6.com/wwb3/node695x64.zip
(此版本包含node 6.9.5 npm 3.10.10)
2.配置淘寶鏡像(只配置一個,安裝node-sass會出錯,記得把sass_binary_site也加上)
打開npmrc文件(在你安裝nodejs\node_modules\npm\npmrc)
編輯~/.npmrc加入下面內容
registry =https://registry.npm.taobao.org
解決node-sass 安裝不上的問題 加入
sass_binary_site=https://npm.taobao.org/mirrors/node-sass/
3.安裝python環境
http://www.python.org/ftp/python/2.7.3/python-2.7.3.msi
4.輸入CMD命令行 測試nodejs環境
nodejs環境安裝成功
5.輸入CMD命令行 安裝 typescript 、ypings、node-sass
npm install -g typescript typings
npm i -g node-sass
6.輸入CMD命令行 安裝angular cli(最新版本加上@latest)
新版(angular4.0):
npm install -g @angular/cli@latest
舊版(angular2.0):
npm install -g angular-cli