npm run这个错误怎么解决

控制台

npm run dev
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
Debugger attached.

> demo@1.0.0 dev
> webpack-dev-server --inline --progress --config build/webpack.dev.conf.js

Debugger attached.
(node:12332) [DEP0111] DeprecationWarning: Access to process.binding('http_parser') is deprecated.
(Use `node --trace-deprecation ...` to show where the warning was created)
 13% building modules 31/36 modules 5 active ...e&index=0!D:\App-Vue\demo\src\App.vue{ parser: "babylon" } is deprecated; we now treat it as { parser: "babel" }.
 94% asset optimization

 ERROR  Failed to compile with 1 errors                                                                                                                                    11:42:46

 error  in ./node_modules/bootstrap/dist/js/bootstrap.min.js

Module parse failed: Unexpected token (6:12045)
You may need an appropriate loader to handle this file type.
|   * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|   */
| !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("@popperjs/core")):"function"==typeof define&&define.amd?define(["@popperjs/core"],e):(t="undefined"!=typeof globalThis?globalThis:t||self).bootstrap=e(t.Popper)}(this,(function(t){"use strict";function e(t){if(t&&t.__esModule)return t;const e=Object.create(null);if(t)for(const i in t)if("default"!==i){const s=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>t[i]})}return e.default=t,Object.freeze(e)}const i=e(t),s="transitionend",n=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let i=t.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return 
null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),e=i&&"#"!==i?i.trim():null}return e},o=t=>{const e=n(t);return e&&document.querySelect.....

 @ ./src/main.js 7:0-44
 @ multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server ./src/main.js







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'
import 'bootstrap/dist/css/bootstrap.min.css'
import 'bootstrap/dist/js/bootstrap.min.js'

// Vue.config.productionTip = false

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

bootstrap模块错误

import 'bootstrap/dist/css/bootstrap.min.css'
import 'bootstrap/dist/js/bootstrap.min.js'
这两个路径错了,你看下你有没有安装bootstrap依赖,没装的话装一下