如何为 Linux Debian 安装最新版本的 Node 和 NPM? [英] How to install lastest version of Node and NPM for Linux Debian?

查看:64
本文介绍了如何为 Linux Debian 安装最新版本的 Node 和 NPM?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 Debian Jessie,apt 的最新 Node 版本是 8.9.0.

I have a Debian Jessie and latest Node version available with apt is 8.9.0.

安装最新版本 11.3.0 的简单方法是什么?(还有最新的 NPM)

What's the easy way to install the latest version aka 11.3.0 ? (and the latest NPM also)

推荐答案

我认为管理 Node.js 版本的最简单方法是使用 n

I think easiest way to manage Node.js versions is to use n

$ curl -L https://git.io/n-install | bash

用法

$ n 11.3.0 #Install node 11.3.0 version
$ n latest #Install or activate the latest node release
$ n stable #Install or activate the latest stable node release

这篇关于如何为 Linux Debian 安装最新版本的 Node 和 NPM?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆