Closed kkkkf666 closed 3 years ago
Images and other types of assets omitted.
The bundle size is significantly larger than recommended. Consider reducing it with code splitting: https://umijs.org/docs/load-on-demand You can also analyze the project dependencies using ANALYZE=1
sh: 1: npx: not found npm ERR! code ELIFECYCLE npm ERR! syscall spawn npm ERR! file sh npm ERR! errno ENOENT npm ERR! ant-design-pro@4.2.0 build:
umi build && npx cpr ../static/tyadmin/index.html ../templates/TyAdmin/index.html -o
npm ERR! spawn ENOENT npm ERR! npm ERR! Failed at the ant-design-pro@4.2.0 build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.npm ERR! A complete log of this run can be found in: npm ERR! /home/firefly/.npm/_logs/2021-09-26T14_01_52_816Z-debug.log
大佬怎么解决得 我是这个版本 [root@localhost tyadmin]# node -v v12.19.0 [root@localhost tyadmin]# npm -v 6.14.8
Images and other types of assets omitted.
The bundle size is significantly larger than recommended. Consider reducing it with code splitting: https://umijs.org/docs/load-on-demand You can also analyze the project dependencies using ANALYZE=1
sh: 1: npx: not found npm ERR! code ELIFECYCLE npm ERR! syscall spawn npm ERR! file sh npm ERR! errno ENOENT npm ERR! ant-design-pro@4.2.0 build:
umi build && npx cpr ../static/tyadmin/index.html ../templates/TyAdmin/index.html -o
npm ERR! spawn ENOENT npm ERR! npm ERR! Failed at the ant-design-pro@4.2.0 build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.npm ERR! A complete log of this run can be found in: npm ERR! /home/firefly/.npm/_logs/2021-09-26T14_01_52_816Z-debug.log