when trying to change the template to use nodejs20.x the build is failed
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- aws, nodejs, typescript
- 领域
- build-system, cloud, devtools
调研方向
该 issue 指出了 TypeFunction 通过 npm run build、npx tsc 和 sam build 使用的 TypeScript 构建路径;首先复现 Node.js 20 构建,并检查用于选择 runtime 的 template 和构建配置。完成的标准是 Node.js 20 template 能够在没有 EROFS 或 TS5033 错误的情况下完成 npm install 和 sam build。
由索引模型根据 Issue 内容生成。
描述
I am trying to create resource provider using Typescipt. I saw that the template is using node 14 - which is very old.
i have tried to use node 20. however cfn submit fail with error
command '['npm install --include=optional && sam build --debug --build-dir /Users/liraz/work/skywalker/server/netapp-cfn/export-policy/build --use-container TypeFunction']' returned non-zero exit status 1.
when running the npm install explicitly i am getting an error
Error: NodejsNpmBuilder:NpmPack - NPM Failed: npm notice
npm notice New patch version of npm available! 10.2.3 -> 10.2.5
npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.2.5>
npm notice Run npm install -g [email protected]to update!
npm notice
npm ERR! code 2
npm ERR! path /tmp/samcli/source
npm ERR! command failed
npm ERR! command sh -c npm run build
npm ERR! > [email protected] build
npm ERR! > npx tsc
npm ERR!
npm ERR! error TS5033: Could not write file '/tmp/samcli/source/dist/handlers.js': EROFS: read-only file system, open '/tmp/samcli/source/dist/handlers.js'.
npm ERR! error TS5033: Could not write file '/tmp/samcli/source/dist/models.js': EROFS: read-only file system, open '/tmp/samcli/source/dist/models.js'.
npm ERR! npm WARN config optional Use--omit=optionalto exclude optional dependencies, or
npm ERR! npm WARN config--include=optionalto include them.
npm ERR! npm WARN config
npm ERR! npm WARN config Default value does install optional deps unless otherwise omitted.
npm ERR! npm WARN config optional Use--omit=optionalto exclude optional dependencies, or
npm ERR! npm WARN config--include=optional` to include them.
npm ERR! npm WARN config
npm ERR! npm WARN config Default value does install optional deps unless otherwise omitted.
npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2023-12-07T21_50_45_696Z-debug-0.log
➜ cfnrp npm install --include=optional && sam build --debug --build-dir /Users/liraz/work/cfnrp/build --use-container TypeFunction
npm WARN config optional Use --omit=optional to exclude optional dependencies, or
npm WARN config --include=optional to include them.
npm WARN config
npm WARN config Default value does install optional deps unless otherwise omitted.
`
moving back to node14 and all is fine
- 主要语言
- TypeScript
- 星标
- 46
- 派生
- 18
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
aws-cloudformation/cloudformation-cli-typescript-plugin 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 58/100
aws-cloudformation/cloudformation-cli-typescript-plugin#136 · 1 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 32/100
aws-cloudformation/cloudformation-cli-typescript-plugin#132 · 1 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 20/100
aws-cloudformation/cloudformation-cli-typescript-plugin#115 ·
-
难度 5/5 一周以上 新手友好度 25/100
aws-cloudformation/cloudformation-cli-typescript-plugin#113 ·
-
cfn generate not creating models.可能重新可做 @mmaeng 于 1260 天前认领,目前没有进行中的 PR。 未关闭
aws-cloudformation/cloudformation-cli-typescript-plugin#103 · 1 条评论 · 已指派 1 人 ·
查看 aws-cloudformation/cloudformation-cli-typescript-plugin 的全部 Issue
相似的 Issue
-
[Bug]: [MCP/CLI] Bare loopback IP addresses (127.0.0.1:port) and hosts with ports fail to navigate due to erroneous scheme inference可能已有人在做 @alok-108 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
microsoft/playwright#43263 ·
维护者通常 1 天内回复
-
bug priority:medium
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
难度 1/5 1 小时以内 新手友好度 75/100
lingdojo/kana-dojo#32018 · 1 条评论 · 5 个 reaction ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
paperclipai/paperclip#15751 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
BuilderIO/agent-native#7275 ·
维护者通常 1 天内回复