&& cd /build/ui/
&& npm install -g grunt-cli \
&& cd /build/ui \
&& npm ci \
&& npm run build
получаю ошибку
#9 647.9 Running "webpack:prod" (webpack) task
#9 648.4 Starting type checking service...
#9 648.4 Using 1 worker with 2048MB memory limit
#9 648.5 Starting type checking service...
#9 648.5 Using 1 worker with 2048MB memory limit
#9 648.6 (node:191) DeprecationWarning: Tapable.plugin is deprecated. Use new API on .hooks instead
#9 990.2 Killed
#9 991.4 npm ERR! code ELIFECYCLE
#9 991.4 npm ERR! errno 137
#9 991.5 npm ERR! build: grunt build-prod
#9 991.5 npm ERR! Exit status 137
#9 991.5 npm ERR!
#9 991.5 npm ERR! Failed at the build script.
#9 991.5 npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
#9 992.1
#9 992.1 npm ERR! A complete log of this run can be found in:
#9 992.1 npm ERR! /root/.npm/_logs/2022-03-03T13_35_49_775Z-debug.log
Почему все равно выделяется 2048MB?
может это? https://tproger.ru/translations/chto-delat-s-oshibkoj-heap-out-of-memory-v-javascript/
У тебя проблема с RAM
сколько памяти на хосте?
ты конфиг проверь там будет написано
typeCheck: { memoryLimit: 4096, workers: 2 },
https://stackoverflow.com/questions/44046366/increase-javascript-heap-size-in-create-react-app-project
в строчку npm run build надо куда то вставить --max_old_space_size=4096?
у тебя проект reactjs ?
Там вначале надо ещё модуль накатить в окружение
Обсуждают сегодня