I can't install Amplify on Cloud 9

0

Whilst new to the AWS environment, Amplify, and Cloud9, I didn't think I'd be running into issues this early on.

I'm trying to install amplify in a new Cloud 9 environment, but for some reason, get this error off the bat. Any guidance or direction pointing would be highly appreciated:

Downloading release from https://d2bkhsss993doa.cloudfront.net/8.0.2/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:410:10)
    at Function.allocUnsafe (node:buffer:375:10)
    at Function.concat (node:buffer:553:25)
    at Extract.<anonymous> (/home/ec2-user/.nvm/versions/node/v16.14.2/lib/node_modules/@aws-amplify/cli/lib/binary.js:124:37)
    at Extract.emit (node:events:538:35)
    at finishMaybe (/home/ec2-user/.nvm/versions/node/v16.14.2/lib/node_modules/@aws-amplify/cli/node_modules/readable-stream/lib/_stream_writable.js:624:14)
1개 답변
1

I had the same error in a t2.micro instance type (1GiB), but I solved creating a new Cloud9 environment in a t3.small instance type (2GiB).

답변함 2년 전
  • Thank you for sharing! I had the exact problem and this works for me. In t3.small's intro , it did say that it's designed for web apps.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠