vue安装pubsub-js 库的命令 1、查看pubsub-js 库是否已经存在该库命令: npm info pubsub-js 2、若不存在,则先安装pubsub-js 库,命令如下: npm install --save pubsub-js