Vue.js Vuetify安装问题(未找到这些依赖项:*Vuetify in./src/main.js)

Vue.js Vuetify安装问题(未找到这些依赖项:*Vuetify in./src/main.js),vue.js,vuetify.js,Vue.js,Vuetify.js,我正在尝试安装并运行Vue项目 首先我做了: npm install 然后当我跑的时候 npm run dev 我得到以下错误 ERROR Failed to compile with 2 errors

我正在尝试安装并运行Vue项目

首先我做了:

npm install
然后当我跑的时候

npm run dev
我得到以下错误

ERROR  Failed to compile with 2 errors                                                                                                                                                                                            

These dependencies were not found:

* Vuetify in ./src/main.js
* vue-events in ./src/main.js

To install them, you can run: npm install --save Vuetify vue-events
当我运行npm安装-保存Vuetify vue事件时,我会得到以下结果

npm ERR! Linux 4.15.0-55-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "--save" "Vuetify" "vue-events"
npm ERR! node v8.10.0
npm ERR! npm  v3.5.2
npm ERR! code E404

npm ERR! 404 Not found : Vuetify
npm ERR! 404 
npm ERR! 404  'Vuetify' is not in the npm registry.
npm ERR! 404 Your package name is not valid, because 
npm ERR! 404  1. name can no longer contain capital letters
npm ERR! 404 
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! Please include the following file with any support request:
好的,我找到了

我在main.js的下面一行中更改了它

import Vuetify from 'Vuetify';

首先安装vuetify

 npm install vuetify --save
然后在./src/main.js文件中导入vuetify

 import Vuetify from 'vuetify/lib'

 Vue.use(Vuetify)
然后安装vue事件

   npm install vue-events
然后像这样导入它

 import VueEvents from 'vue-events'
Vue.use(VueEvents)
 import VueEvents from 'vue-events'
Vue.use(VueEvents)