1.环境搭建
①更新node
②can’t find module xxx
③webpack提示Cannot read property ‘properties’ of undefined错误
npm i webpack-cli@3.1.1 -D
④ 外网访问
⑤ 感受一下前后端分离
more
⑥
npm ERR! love@1.0.0 dev: webpack-dev-server --inline --progress --config build/webpack.dev.conf.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the love@1.0.0 dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm remove webpack-dev-server
npm install webpack-dev-server
⑦换源:cnpm替换npm 速度快很多
npm install -g cnpm --registry=https://registry.npm.taobao.org
cnpm install
⑧莫名其妙被KILL 内存不足