
2023年最新版本的node安装


解压出来看到对应的文件内容。

不要有中文的路径存在。按照下图的序号逐一操作即可。

在当前文件夹下创建两个文件夹【node_global】与【node_cache】
直接鼠标右键【新建文件夹】后改名即可

以下操作均在cmd下执行。
npm config set prefix "D:\save\exe\ideas\Node\node-v20.5.1-win-x64\node_global" npm config set cache "D:\save\exe\ideas\Node\node-v20.5.1-win-x64\node_cache" npm config list
最后一句是查询啊,不是配置。

npm config set registry=http://registry.npm.taobao.org npm config list

【-g】装到【global下】,就是刚才自己创建的文件夹。
npm install npm -g
D:\save\exe\ideas\Node\node-v20.5.1-win-x64\node_global\node_modules

可以正常使用。
