前端打包的时候出现 Building fresh packages...
毫不犹豫的换源:
vim .npmrc和.yarnrc
registry "https://registry.npm.taobao.org"
sass_binary_site "https://npm.taobao.org/mirrors/node-sass/"
phantomjs_cdnurl "http://cnpmjs.org/downloads"
electron_mirror "https://npm.taobao.org/mirrors/electron/"
sqlite3_binary_host_mirror "https://foxgis.oss-cn-shanghai.aliyuncs.com/"
profiler_binary_host_mirror "https://npm.taobao.org/mirrors/node-inspector/"
chromedriver_cdnurl "https://cdn.npm.taobao.org/dist/chromedriver"
调整linux系统参数
sudo xed /etc/sysctl.conf
在最下添加
fs.inotify.max_user_watches=524288
保存退出
sudo sysctl -p