npm install 报错
> uglifyjs-webpack-plugin@0.4.6 postinstall /opt/apps/iview-admin/node_modules/webpack/node_modules/uglifyjs-webpack-plugin > node lib/post_install.js npm http 304 https://registry.npmjs.org/is-primitive npm http 304 https://registry.npmjs.org/fill-range npm http 304 https://registry.npmjs.org/p-try module.js:340 throw err; ^ Error: Cannot find module 'sync-exec' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Module.require (module.js:364:17) at require (module.js:380:17) at Object.<anonymous> (/opt/apps/iview-admin/node_modules/webpack/node_modules/uglifyjs-webpack-plugin/lib/post_install.js:9:14) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Function.Module.runMain (module.js:497:10)
解决办法:npm i browser-sync --save
参考:https://stackoverflow.com/questions/33200308/error-cannot-find-module-browser-sync