node.js mac
时间: 2023-09-12 10:02:44 浏览: 73
在Mac上配置Node.js环境,需要进行以下步骤:
1. 首先,配置npm的文件夹路径和缓存路径,可以使用以下命令:
npm config set prefix "/Library/NodeJS/node-v16.17.0-darwin-arm64/node_global"
npm config set cache "/Library/NodeJS/node-v16.17.0-darwin-arm64/node_cache"
这样配置后,npm的全局安装包和缓存将存储在指定的文件夹中。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [Mac OS 配置 Nodejs](https://blog.csdn.net/qq_41934338/article/details/126711427)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* [mac 安装node.js](https://blog.csdn.net/FIY_Lv/article/details/121380788)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文