相同的代码,相同的依赖,相同的版本。卡了好久。网上也查了各种资料,前端也看了。都没找出来原因。。求助社区大佬

打包 log 报错,运行 log 中的 npm install 也没办法运行成功。

h236812@HON-AI:/var/lib/jenkins/workspace/t$ sudo /usr/local/bin/npm run prod

ssrtm@1.0.0 prod /var/lib/jenkins/workspace/t
cross-env UMI_ENV=prod umi build

@umijs/plugin-locale WARNING: antd is not installed, unavailable.

✖ Webpack
Compiled with some errors in 58.10s

Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
ERROR Failed to compile with 12 errors 8:42:33 AM

These dependencies were not found:

To install them, you can run: npm install --save /var/lib/jenkins/workspace/t/src/pages/TrailUser/register /var/lib/jenkins/workspace/t/src/pages/User/SetPwd @/pages/Home/Widgets/Widgets @/pages/Home/Widgets/tiles/weather/weatherUtil React

These relative modules were not found:

npm ERR! A complete log of this run can be found in:
npm ERR! /home/h236812/.npm/_logs/2021-05-13T00_42_33_802Z-debug.log


↙↙↙阅读原文可查看相关链接,并与作者交流