1.安装更新nodejs
ubuntu18 自带的nodejs默认的版本为 8.x版本,需要更新到14.x以上
操作步骤为,更改源、更新更新源、安装软件
curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -
sudo apt-get update
sudo apt-get install -y nodejs
测试
node -v
v16.20.1
2.安装lv_font_conv
下载源码,进入源码使用nmp安装
git clone https://github.com/lvgl/lv_font_conv
cd lv_font_conv
sudo npm i lv_font_conv -g
测试
lv_font_conv -v
1.5.2