NodeJs学习笔记

Sunmy Lv5

fnm

installs fnm (Fast Node Manager)

curl -fsSL https://fnm.vercel.app/install | bash

download and install Node.js

fnm use --install-if-missing 20

verifies the right Node.js version is in the environment

node -v # should print v20.15.0

verifies the right NPM version is in the environment

npm -v # should print 10.7.0

nvm

installs nvm (Node Version Manager)

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash

download and install Node.js (you may need to restart the terminal)

nvm install 20

verifies the right Node.js version is in the environment

node -v # should print v20.15.0

verifies the right NPM version is in the environment

npm -v # should print 10.7.0

链接

https://nodejs.org/en/download/package-managerhttps://nodejs.org/en/download/package-manager

  • 标题: NodeJs学习笔记
  • 作者: Sunmy
  • 创建于 : 2023-06-30 16:56:57
  • 更新于 : 2025-06-29 21:05:24
  • 链接: https://ldspdvsun.github.io/cmchvp8g1002gh0gb0gy1aija/
  • 版权声明: 版权所有 © Sunmy,禁止转载。
评论