macOS v11.2.2, M1 칩에서 node version error해결하기

Maliethy·2021년 5월 11일
0

javascript error

목록 보기
1/5

1. issue

wasm code commit Allocation failed - process out of memory

Fatal error in , line 0
Check failed: allocator->SetPermissions(reinterpret_cast<void*>(region.begin()), region.size(), PageAllocator::kNoAccess)

2. solution

wasm-code-commit-allocation-failed-process-out-of-memory에서 확인할 수 있듯이

현재 M1 macOS의 노드는 node @ 15를 제외하고는 잘 작동하지 않습니다. arm64 아키텍처에 구축 된 node @ 12를 사용하는 경우 https://github.com/dcodeIO/long.js.git 와 같은 일부 스크립트에서 충돌이 발생할 수 있습니다.

그래서 node version을 15.3.0으로 설정하니 해결되었다. 그러나
뒤이어 발생한 Check failed: allocator->SetPermissions(reinterpret_cast<void*>(region.begin()), region.size(), PageAllocator::kNoAccess)
는 15.9.0이상으로 버전을 올리니 해결되었다.

profile
바꿀 수 있는 것에 주목하자

0개의 댓글