aws-samples / aws-serverless-workshops

Code and walkthrough labs to set up serverless applications for Wild Rydes workshops
http://wildrydes.com
Apache License 2.0
4.19k stars 2.62k forks source link

amplify init - RangeError: Array buffer allocation failed #342

Open Alexisb710 opened 1 year ago

Alexisb710 commented 1 year ago
~/environment/wild-rydes (master) $ amplify init
Downloading release from https://package.cli.amplify.aws/11.0.3/amplify-pkg-linux-x64.tgz
node:internal/buffer:959
    super(bufferOrLength, byteOffset, length);
    ^

RangeError: Array buffer allocation failed
    at new ArrayBuffer (<anonymous>)
    at new Uint8Array (<anonymous>)
    at new FastBuffer (node:internal/buffer:959:5)
    at createUnsafeBuffer (node:internal/buffer:1062:12)
    at allocate (node:buffer:415:10)
    at Function.allocUnsafe (node:buffer:380:10)
    at Function.concat (node:buffer:558:25)
    at Extract.<anonymous> (/home/ec2-user/.nvm/versions/node/v16.20.0/lib/node_modules/@aws-amplify/cli/lib/binary.js:127:37)
    at Extract.emit (node:events:525:35)
    at finishMaybe (/home/ec2-user/.nvm/versions/node/v16.20.0/lib/node_modules/@aws-amplify/cli/node_modules/readable-stream/lib/_stream_writable.js:579:14)
tettehnarh commented 1 year ago

Changing my ec2 instance type from t2.micro to t2.small removed this error