我正在尝试安装和运行一个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:发布于 2019-08-27 07:58:04
好吧我找到了,
我在main.js中更改了下面一行
import Vuetify from 'Vuetify';至
import Vuetify from 'vuetify';发布于 2019-08-27 08:11:02
第一次安装验证
npm install vuetify --save然后在./src/main.js文件上导入vuetify
import Vuetify from 'vuetify/lib'
Vue.use(Vuetify)然后安装vue-events
npm install vue-events然后像这样进口
import VueEvents from 'vue-events'
Vue.use(VueEvents)https://stackoverflow.com/questions/57670029
复制相似问题