npm install -g npm
时间: 2023-10-18 15:26:53 浏览: 125
运行npm install -g npm命令是用来全局安装npm包管理器,其中-g参数表示全局安装。通过全局安装npm,可以在任何目录中使用npm命令。这个命令通常用于更新npm的版本。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [npm install\npm install -g\npm install -save\ npm install -save-dev](https://blog.csdn.net/weixin_43101443/article/details/87601916)[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^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *3* [npm install 安装包时,常用的-S 、-D 、-g 、什么都不加、有什么区别?](https://blog.csdn.net/2301_76676960/article/details/131001905)[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^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文