前端执行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,发现项目启动没有问题了。
推荐阅读
-
npm run dev的错误
-
关于vue的npm run dev和npm run build的区别介绍
-
npm run dev 报错 ERROR in Entry module not found: Error: Can't resolve './src' in
-
项目运行npm run dev浏览器始终报cannot get /
-
vue打包npm run build时候界面报错的解决
-
详解vuejs中执行npm run dev出现页面cannot GET/问题
-
npm run dev 启动错误:Module build failed: Error: No PostCSS Config found in:xxxxxxxxxxxxxx
-
解决vue项目运行npm run serve报错的问题
-
前端npm install 报错
-
npm run build报错Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of