安装node.js npm install -g cnpm --registry=https://registry.npm.taobao.org 安装webpack npm install webpack -g 初始化webpack npm init