NodeJS、NPM、GIT安裝

一、安裝nodejs,6.10.3版,自帶npm。html

  http://www.runoob.com/nodejs/nodejs-install-setup.htmlnode

二、更新npm。webpack

  cmd: npm install npm@latest -ggit

三、安裝git,2.13.0版。web

  https://git-scm.com/download/winnpm

四、檢查是否成功安裝。webpack-dev-server

  cmd: node --version 和 git --version 還有 npm --version 查看是否安裝成功而且顯示當前版本號插件

五、安裝webpack模塊。server

  cmd: npm install webpack -ghtm

  cmd: npm install webpack-dev-server -g

六、安裝cnpm。

  cnpm使用的是淘寶網的鏡像http://npm.taobao.org
  cmd:npm install cnpm -g --registry=https://registry.npm.taobao.org

六、在工程目錄下啓動服務。

  cmd: cd C:\Users\liuck\Desktop\deck.gl-4.0-release\examples\trips

  cmd: npm install webpack --save-dev

  cmd: npm install  若是插件沒法安裝,這則使用cnpm,cmd: cnpm install

  cmd: npm start

相關文章
相關標籤/搜索