vue2安装vuex命令
时间: 2024-04-28 20:25:02 浏览: 98
在VSCode中新建终端,然后使用以下命令来安装Vue2中的Vuex:
```
npm i vuex@3
```
这个命令会安装Vue2中的Vuex的版本为3。这是因为Vue2不能使用Vuex4的版本。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [【vue2】vuex的安装、配置与使用](https://blog.csdn.net/weixin_44431073/article/details/125097284)[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_2"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [vue2知识点:理解vuex、安装vuex、搭建vuex环境](https://blog.csdn.net/a924382407/article/details/125520743)[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_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文