问题1: Head独立运行时,安装依赖时报错,连接超时
解决方案:由于NPM资源库在国外,可考虑放弃使用NPM安装相关依赖,安装 淘宝提供的CNPM,然后再执行cnpm install ,安装项目相关依赖
问题2: Head无法连接ElasticSearch,使用Debug工具查看Web页面,报错为跨域错误
解决方案:elasticsearch.yml文件, 添加如下配置
http.cors.enabled: true
http.cors.allow-origin: "*"