1. bzip2: Cannot exec: No such file or directory
tar (child): bzip2: Cannot exec: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
解决方法
# 安装bzip2
yum install -y bzip2
2.
[root@c208 elasticsearch-head]# grunt server
Loading "Gruntfile.js" tasks...ERROR
>> SyntaxError: Unexpected identifier
Warning: Task "server" not found. Use --force to continue.
解决方法
# 看看Gruntfile.js,新加的值有没有语法问题
3. grunt server 启动报错
(node:17315) ExperimentalWarning: The http2 module is an experimental API.
Running "connect:server" (connect) task
Waiting forever...
Fatal error: listen EADDRNOTAVAIL 172.16.5.1:9100
解决方法
# npm更新到最新版
npm install -g npm
# node更新
# 清缓存
npm cache clean -f
# 安装n模块
npm install -g n
# 更新
./n latest