[Tools] Install and Manage Node.js Versions with nvm
2023-09-14 09:00:47 时间
It can be difficult to work on multiple projects that use different versions of Node.
nvm
(Node Version Manger) make this easier by allowing you to download multiple versions and switch between them. You can also add a NVM configuration file (i.e. .nvmrc
) to specify which version you want to use for each project.
Create .nvmrc:
lts/erbium // v12 // or just list the version you want to use 5.12.0
Then just run:
nvm use
相关文章
- Node.js文件操作二
- Node.js处理I/O数据之Buffer模块缓冲数据
- [CLI] Create a Hybrid Single-Multi Command Node.js CLI with Oclif and TypeScript
- [Docker] Linking Node.js and MongoDB Containers
- [NPM] Use npx to run commands with different Node.js versions
- [Node.js] Read a File in Node.js with fs.readFile and fs.readFileSync
- [Node.js] Testing ES6 Promises in Node.js using Mocha and Chai
- [Node.js] Using ES6 and beyond with Node.js
- [Node.js] Web Scraping Images with Node, Xray, and Download
- [Node.js] Intro to Web Scraping with Node and X-ray
- [Node.js] CommonJS Modules
- [Node.js] Broswerify -- 2
- [MEAN Stack] First API -- 1. with Node.js, Express and MongoDB
- Node.js调用C/C++
- Node.js 和 C++ 之间的类型转换
- [Custom CLI] Develop and Publish a Node.js CLI from Scratch
- [Node.js] Availability and Zero-downtime Restarts
- [Tools] Convert SVG to a PDF in Node with PDFKit and SVG.js
- [Node] Setup an Nginx Proxy for a Node.js App
- [Node.js] Web Scraping Images with Node, Xray, and Download
- Atitit node.js自定义模块化 Function walkFileTree() exports.walkFileTree =walkFileTree 引用 Files=require
- Node.js:pm2管理进程启动npm run dev和开机自启
- js限制文字字数--点击展开点击收起demo效果示例(整理)
- JS从0到1——818. 数组排序