amazon-web-services - AWS“放大推送”失败,“命令失败,退出代码为 1:yarn --production”
问题描述
我正在按照本教程在我的 AWS amplify node.js proejct 中添加一个 lambda 函数,当我
amplify push
它以这个错误结束:
Current Environment: dev
| Category | Resource name | Operation | Provider plugin |
| -------- | ------------- | --------- | ----------------- |
| Function | mylambda | Create | awscloudformation |
| Api | myapi | Create | awscloudformation |
✖ An error occurred when pushing the resources to the cloud
Packaging lambda function failed with the error
Command failed with exit code 1: yarn --production
An error occurred during the push operation: Packaging lambda function failed with the error
Command failed with exit code 1: yarn --production
我尝试重新创建放大项目,但最终出现相同的错误。
解决方案
我遇到了同样的错误。就我而言,我在我的 macOS 上安装了 Hadoop 纱线。yarn
我终端上的命令正在调用 Hadoop 纱线。
我删除(重命名)/usr/local/Cellar/hadoop
目录以删除 Hadoop。之后,amplify push
成功运行。
推荐阅读
- javascript - 如果在字符串中找到超链接,则只允许特定域
- css - 有没有办法删除这个自定义字体的字体粗细?
- python - 使用 ruamel.yaml 在 yaml 文件的第一行添加了不希望的缩进和破折号
- r - 根据名称数据库通过名称的部分匹配和重命名来汇总行
- python - 双摆RK4
- python - 这两个返回语句有什么区别
- mongodb - spring data mongo upsert 嵌入对象数组和主文档
- apache - Tomcat 集群设置中的身份验证和会话复制
- numpy - 分布乘以不同形状的矩阵,然后在 numpy 中将它们相加
- python - 如何使用python从谷歌云存储下载文件