欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

前端执行npm run dev报错

程序员文章站 2022-05-13 19:39:44
...
 ERROR  Failed to compile with 7 errors                                                                                             14:23:31
These dependencies were not found:

* vue-datepicker/vue-datepicker-es6.vue in ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/components/pages/column.vue, ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/components/pages/line.vue and 3 others
* vue-fullscreen in ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/components/dashboard/dashboard.vue, ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/vue/Header.vue

To install them, you can run: npm install --save vue-datepicker/vue-datepicker-es6.vue vue-fullscreen    

可以看到应该是少了两个插件,一个是vue-datepicker,另外一个是vue-fullscreen

我开始的时候执行的npm install看来是没有下载下来。所以,我们这里进行单独下载。

1.npm install vue-fullscreen --save

2.npm install vue-datepicker --save

分别看到提示信息:added 1 package in 23.497s

继续执行npm run dev,发现项目启动没有问题了。