Loading... 首先指定安装源, 这样是安装 LTS 的版本。 ``` curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash - ``` 或最新版本 ``` curl -fsSL https://deb.nodesource.com/setup_current.x | sudo -E bash - ``` ,接着安装 Node.js ``` sudo apt-get install nodejs ``` 使用 node -v 和 npm -v进行测试 最后修改:2022 年 06 月 14 日 © 允许规范转载 打赏 赞赏作者 支付宝微信 赞 0 如果觉得我的文章对你有用,请随意赞赏,谢谢