yinxin630 / fiora

An interesting open source chat application. Developed with node.js, mongoDB, socket.io and react

Home Page:https://fiora.suisuijiang.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

构建web前段失败

KeSaite opened this issue · comments

系统:乌班图20.04
Node.js:16.15.0
Redis:6.2.6
MongoDB:4.4.6

yarn build:web 命令打印信息

root@racknerd-19928e:/opt/fiora# yarn build:web
yarn run v1.22.18
$ npx lerna run build:web --stream
lerna notice cli v4.0.0
lerna info versioning independent
lerna info Executing command in 1 package: "yarn run build:web"
@fiora/web: warning package.json: "dependencies" has dependency "@testing-library/jest-dom" with range "^5.14.1" that collides with a dependency in "devDependencies" of the same name with version "^4.2.4"
@fiora/web: $ rm -rf dist && cross-env NODE_ENV=production DOTENV_CONFIG_PATH=../../.env webpack --config build/webpack.prod.js && cp -r -f dist/fiora/* ../server/public
@fiora/web: ℹ Compiling Webpack
@fiora/web: Browserslist: caniuse-lite is outdated. Please run:
@fiora/web: npx browserslist@latest --update-db
@fiora/web: Why you should do it regularly:
@fiora/web: https://github.com/browserslist/browserslist#browsers-data-updating
@fiora/web: <--- Last few GCs --->
@fiora/web: [114181:0x66cf7c0] 115834 ms: Mark-sweep 354.1 (373.5) -> 349.9 (373.8) MB, 1110.8 / 0.0 ms (average mu = 0.262, current mu = 0.178) allocation failure scavenge might not succeed
@fiora/web: [114181:0x66cf7c0] 117137 ms: Mark-sweep 354.2 (373.8) -> 349.9 (373.8) MB, 978.4 / 0.0 ms (average mu = 0.256, current mu = 0.249) allocation failure scavenge might not succeed
@fiora/web: <--- JS stacktrace --->
@fiora/web: FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
@fiora/web: 1: 0xb09c10 node::Abort() [webpack]
@fiora/web: 2: 0xa1c193 node::FatalError(char const*, char const*) [webpack]
@fiora/web: 3: 0xcf8dbe v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [webpack]
@fiora/web: 4: 0xcf9137 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [webpack]
@fiora/web: 5: 0xeb09d5 [webpack]
@fiora/web: 6: 0xeb14b6 [webpack]
@fiora/web: 7: 0xebf9de [webpack]
@fiora/web: 8: 0xec0420 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [webpack]
@fiora/web: 9: 0xec339e v8::internal::Heap::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [webpack]
@fiora/web: 10: 0xe848da v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationType, v8::internal::AllocationOrigin) [webpack]
@fiora/web: 11: 0x11fd626 v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [webpack]
@fiora/web: 12: 0x15f2099 [webpack]
@fiora/web: error Command failed with exit code 1.
@fiora/web: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
lerna ERR! yarn run build:web exited 1 in '@fiora/web'
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

我也是这个问题,请问您解决了吗

我也是这个问题,请问您解决了吗

什么配置的机器, 看报错应该是内存不够了

我也是这个问题,请问您解决了吗

什么配置的机器, 看报错应该是内存不够了

1核1g,可能是内存问题

@iven13465 可以尝试配置一下虚拟内存