有人知道为什么我在INIT期间会遇到错误吗?我检查了内存不满吗?

发布于 2025-01-24 01:53:38 字数 894 浏览 3 评论 0 原文

ec2-user:〜/环境/野生rydes(master)$ amplify init

节点:内部/缓冲区:959
超级(BufferLength,ByteOffset,长度);
^

连击:数组缓冲区分配失败
在new ArrayBuffer()
在new Uint8array()
在New FastBuffer(节点:内部/缓冲区:959:5)
在CreateUnSafebuffer(节点:内部/缓冲区:1062:12)
在分配(节点:缓冲区:410:10)
在function.alocunsafe(节点:缓冲区:375:10)
在function.concat(节点:缓冲区:553:25)
提取。 (/home/ec2-user/.nvm/versions/node/v16.14.2/lib/node_modules/@aws-amplify/cli/lib/lib/binary.js:124:37)
在Extract.emit(节点:事件:538:35)
在finedmaybe(/home/ec2-user/.nvm/versions/node/v16.14.2/lib/node_modules/@aws-amplify/cli/node_modules/node_modules/node_modules/dribable-stream/lib/lib/_stream/_stream_writaile.js:js:624:14)

ec2-user:~/environment/wild-rydes (master) $ amplify init
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 ()
at new Uint8Array ()
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. (/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)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

埋情葬爱 2025-01-31 01:53:38

它似乎与版本8.0.2 有关,我敢肯定,AWS会在某个时候解决。

作为解决方法,您可以安装另一个放大CLI版本,您将能够使用它。

例子:

npm i -g @aws-amplify/[email protected]

It seems to be something related to version 8.0.2, which I'm sure AWS will fix at some point.

As a workaround you can install another Amplify CLI version and you will be able to use it.

Example:

npm i -g @aws-amplify/[email protected]
南七夏 2025-01-31 01:53:38

版本 8.1.0 发生相同的错误

https://d2bkhsss993doa.cloudfront.net/8.1.0/amplify-pkg-linux-x64.tgz

Same error occured for version 8.1.0

https://d2bkhsss993doa.cloudfront.net/8.1.0/amplify-pkg-linux-x64.tgz
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文