Technology Radar
Published : Mar 29, 2022
NOT ON THE CURRENT EDITION
This blip is not on the current edition of the Radar. If it was on one of the last few editions, it is likely that it is still relevant. If the blip is older, it might no longer be relevant and our assessment might be different today. Unfortunately, we simply don't have the bandwidth to continuously review blips from previous editions of the Radar.
Understand more
Mar 2022
Trial
当同时在多个 JavaScript 代码库上工作时,我们往往需要使用不同版本的 Node 和其他 JavaScript 工具。在开发机器上,这些工具通常安装在用户目录或本机中,这意味着需要一个解决方案,帮助开发者在多个版本之中进行切换。对于 Node 而言,nvm 能够做到这一点,但我们想重点强调一个替代方案 Volta ,我们的一些团队正在使用它。与使用 nvm 相比,Volta 有几个优点:它可以管理其他 JavaScript 工具,如 Yarn;它还具备一个基于项目绑定工具链某个版本的理念,这意味着开发人员可以简单使用给定代码目录中的工具,而不必担心需要手动切换工具版本 —— Volta 是通过使用路径中的 shims 来选择被绑定的版本。Volta 采用 Rust 编写,速度极快,以独立二进制文件进行分发,没有任何依赖。