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