vue-router放在哪里?

因为主机不能联网,无法正确执行npm install --save vue-router命令,下了一个vue-router包,来自:
GitHub - vuejs/vue-router: 🚦 The official router for Vue.js.

img

但是不知道放在哪里?

项目中的node_modules就可以的

拖到 node_modules里就行

node_modules

基于问题

  1. 下载的安装包直接放入node_modules里面
  2. 在入口处或者需要使用的位置 直接import 进入就行