npm install npm install -g webpack 以後再執行npm run dev報錯以下webpack
1.npm ERR! addLocal Could not install /home/vagrant/code/fronthollyerp/–no-bin-linksweb
執行npm i --by=npm --no-bin-linksnpm
2.再次執行npm run devwebpack-dev-server
報錯 sh: 1: webpack-dev-server: not foundvagrant
安裝webpack-dev-servercode
npm install webpack-dev-server -gserver
再次執行能夠運行了,blog
注:全部命令都在root權限下執行權限