1、執行以下命令
ng set -g packageManager=cnpm
ng get -g
2、npm install 安裝過程卡住不動
npm config set registry http://registry.cnpmjs.org
或修改npmrc文件 增加一條 registry=http://registry.cnpmjs.org
3、啓動時cannot find module ‘webpack/lib/node/NodeTemplatePlugin’
是因爲全局安裝webpack導致的,本項目中安裝,cnpm install webpack
此步驟參考:http://blog.csdn.net/u013240543/article/details/51792261