目录
Node.js 学习笔记
个人博客地址:

使用npm 命令经常遇到npm 与node.js 版本不兼容报错的情况,下面通过nvm 版本管理工具解决问题
nvm
node.js version management 通过它可以安装和切换不同版本的node.js
第一步
先卸载之前的node.js
安装

设置安装nvm 的路径,后面配置环境变量需要使用到

设置node.js 安装路径

安装完成

nvm 常用命令
nvm arch - 显示node是运行在32位还是64位。

nvm install - 安装指定node版本

遇到的问题
npm i 报错,Unsupported platform for fsevents@2.3.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm i 命令后面加 --force 强制npm i
