maxzhao

不要害怕Exception和Error

  • Home
  • About
  • Tags
  • Categories
  • Archives
  • Schedule
  • Search
  • Table of Contents
  • Overview
  1. 1. 安装 n
    1. 1.0.1. 配置
    2. 1.0.2. 安装
    3. 1.0.3. 切换版本
    4. 1.0.4. nodejs 版本信息
赵联胜

赵联胜

小码农赵联胜的博客,从遇到Java到爱上Java,工作之余学习Java生态圈中的各种技术。
443 posts
190 categories
240 tags
友情链接
  • 我的简书
0%

npm修改版本(n)

Edited on 2022-07-04 In NodeJs , npm

安装 n

1
npm install -g n

配置

1
vim ~/.bash_profile 

加入下面两行

1
2
export N_PREFIX=/usr/local
PATH=$N_PREFIX/bin;$PATH

刷新配置

1
source ~/.bash_profile 

安装

1
2
3
4
# 安装最新版
n latest
# 安装指定版本
n 12.2.0

切换版本

1
2
n
# 然后选择版本

nodejs 版本信息

以往的 NodeJs版本

本文地址: https://github.com/maxzhao-it/blog/post/95dfb6b5/

# NodeJs # npm
npm修改版本(nvm)
npm修改源
© 2024 赵联胜