可以尝试使用 npm cache clean --force 清理npm缓存后再重新编译。
兰天飞 <lantianfei2...@163.com> 于2022年9月30日周五 11:33写道: > doris研发小组,你好: > > 我这边在docker容器中使用命令"sh build.sh --clean --be --fe --ui"编译doris时报错,报错内容为: > 6.12.0 > Build Frontend UI > npm ERR! Unexpected token < in JSON at position 0 while parsing near > '<!DOCTYPE html> > npm ERR! <htm...' > > npm ERR! A complete log of this run can be found in: > npm ERR! /root/.npm/_logs/2022-09-30T02_23_50_815Z-debug.log > > 附件为相关日志文件。 > 容器中npm做了部分调整,具体配置信息如下: > [root@56b79938dc8d apache-doris-1.1.1-src]# npm config list > ; cli configs > metrics-registry = "https://registry.npmjs.org/" > scope = "" > user-agent = "npm/6.12.0 node/v12.13.0 linux x64" > > ; userconfig /root/.npmrc > https-proxy = "http://**********/" > proxy = "http://**********/" > registry = "https://registry.npmjs.org/" > strict-ssl = false > > ; node bin location = /usr/local/bin/node > ; cwd = /root/apache-doris-1.1.1-src > ; HOME = /root > ; "npm config ls -l" to show all defaults. > > 烦请帮忙关注此问题并提供解决建议。 > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@doris.apache.org > For additional commands, e-mail: dev-h...@doris.apache.org