본문 바로가기
푸닥거리

react project create error in aws

by [김경민]™ ┌(  ̄∇ ̄)┘™ 2022. 5. 10.
728x90

Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...

npm ERR! code ENOMEM
npm ERR! syscall spawn
npm ERR! errno -12
npm ERR! spawn ENOMEM

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/admin/.npm/_logs/2022-05-10T05_01_02_461Z-debug-0.log

Aborting installation.
  npm install --no-audit --save --save-exact --loglevel error react react-dom react-scripts cra-template has failed.

Deleting generated file... node_modules
Deleting generated file... package.json
Deleting notion/ from /var/www/html

 

 

https://stackoverflow.com/questions/26193654/node-js-catch-enomem-error-thrown-after-spawn

 

Node.js catch ENOMEM error thrown after spawn

My Node.js script crashes because of a thrown ENOMEM (Out of memory) errnoException when using spawn. The error: child_process.js:935 throw errnoException(process._errno, 'spawn'); ^ Err...

stackoverflow.com

free -m
fallocate -l 4G /swapfile
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
echo “/swapfile none swap sw 0 0” | sudo tee -a /etc/fstab

 

728x90

댓글