when trying to change the template to use nodejs20.x the build is failed
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- aws, nodejs, typescript
- Lĩnh vực
- build-system, cloud, devtools
Hướng nghiên cứu
Issue nêu đường dẫn build TypeScript thông qua npm run build, npx tsc và sam build cho TypeFunction; trước tiên hãy tái hiện bản build Node.js 20 và kiểm tra template cùng cấu hình build dùng để chọn runtime. Được xem là hoàn tất khi template Node.js 20 chạy xong npm install và sam build mà không gặp các lỗi EROFS hoặc TS5033.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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 npm@10.2.5to 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! > netapp-fsx-svmpeer@0.1.0 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
- Ngôn ngữ chính
- TypeScript
- Star
- 46
- Fork
- 18
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của aws-cloudformation/cloudformation-cli-typescript-plugin
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 58/100
aws-cloudformation/cloudformation-cli-typescript-plugin#136 · 1 reaction ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 32/100
aws-cloudformation/cloudformation-cli-typescript-plugin#132 · 1 reaction ·
-
integration tests are broken Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 20/100
aws-cloudformation/cloudformation-cli-typescript-plugin#115 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
aws-cloudformation/cloudformation-cli-typescript-plugin#113 ·
-
aws-cloudformation/cloudformation-cli-typescript-plugin#103 · 1 bình luận · 1 người được giao ·
Tất cả issue của aws-cloudformation/cloudformation-cli-typescript-plugin
Issue tương tự
-
bug(cli): hapi doctor inline-media prints a fabricated B:\ helper-script path in packaged installs Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Crush Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
catppuccin/catppuccin#3125 ·
-
Add a SECURITY.md Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
ElementsProject/cln-application#167 · 1 bình luận · 1 reaction ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Quantco/pnpm-licenses#17 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100