摘要: Consider this Result type: type Result<TResult, TError> = | { success: true; data: TResult; } | { success: false; error: TError; }; The Result type ha 阅读全文
posted @ 2024-09-06 15:03 Zhentiw 阅读(8) 评论(0) 推荐(0) 编辑
摘要: Node.js on Containers So now what if we wanted to run a container that has Node.js in it? The default Ubuntu container doesn't have Node.js installed. 阅读全文
posted @ 2024-09-06 14:45 Zhentiw 阅读(5) 评论(0) 推荐(0) 编辑
摘要: So it's much easier to do what we did with Docker. Run this command: docker run --interactive --tty alpine:3.19.1 # or, to be shorter: docker run -it 阅读全文
posted @ 2024-09-06 14:34 Zhentiw 阅读(4) 评论(0) 推荐(0) 编辑