Vue demo 项目出现This dependency was not found ?

命令提示符输入:

cnpm run dev

错误:

 ERROR  Failed to compile with 1 errors                                                                                                                                           下午6:09:19

This dependency was not found:

* vue-easytable/libs/themes-base/index.css in ./src/main.js

To install it, you can run: npm install --save vue-easytable/libs/themes-base/index.css

webstorm main.js代码:

// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
//引入IVIEW组件
import iView from 'iview'
import 'iview/dist/styles/iview.css'
Vue.use(iView);
//引入vue-easytable
import 'vue-easytable/libs/themes-base/index.css'
import {VTable,VPagination} from 'vue-easytable'
Vue.component(VTable.name, VTable)
Vue.component(VPagination.name, VPagination)

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})

 

你的vue-easytable这个东西下载了吗 你看下node_modules里面有没有这个东西

没有找到index.css ,这里提示安装

 

把依赖文件夹删了重新install一下试试

我也遇到这个问题了呢,解决了吗?我已经搞了很久了,都不行