【问题标题】:Cannot run Vue app after multiple npm audit fix多个 npm 审核修复后无法运行 Vue 应用程序
【发布时间】:2022-01-19 20:03:19
【问题描述】:

我想解决一个问题漏洞问题,但现在我的应用程序无法运行。

我收到此错误消息:

未找到此依赖项:

  • firebase 在 ./src/main.js, ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache -loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader-v16/dist??ref--0-1!./src/components/Navigation.vue?vue&type=script&lang =js 和另外 1 人

要安装它,你可以运行: npm install --save firebase 来自 chokidar (C:) 的错误:错误:EBUSY:资源繁忙或锁定,lstat 'C:\DumpStack.log.tmp'

这是我的 package.json:

{
  "name": "poker-app",
  "version": "0.1.0",
  "private": true,
  "scripts": {
    "serve": "vue-cli-service serve",
    "build": "vue-cli-service build",
    "lint": "vue-cli-service lint"
  },
  "dependencies": {
    "chart.js": "^3.6.2",
    "core-js": "^3.6.5",
    "firebase": "^9.6.1",
    "generatorics": "^1.1.0",
    "itertools": "^1.7.1",
    "vue": "^3.0.0",
    "vue-chartkick": "^0.6.1",
    "vue-echarts": "^6.0.0",
    "vue-router": "^4.0.11"
  },
  "devDependencies": {
    "@vue/cli-plugin-babel": "~4.5.0",
    "@vue/cli-plugin-eslint": "~4.5.0",
    "@vue/cli-plugin-router": "~4.5.0",
    "@vue/cli-service": "~4.5.0",
    "@vue/compiler-sfc": "^3.0.0",
    "babel-eslint": "^10.1.0",
    "eslint": "^6.7.2",
    "eslint-plugin-vue": "^7.0.0"
  }
}

有人知道是什么吗?

【问题讨论】:

    标签: javascript firebase vue.js


    【解决方案1】:

    尝试删除 node_modules 文件夹然后运行:

    npm cache clean --force  
    npm install
    

    查看安装过程中的警告,因为它们可以为您提供有关软件包之间版本不兼容的一些线索

    【讨论】:

    • 不幸的是它没有工作。我收到了我之前想要解决的相同消息(34 个漏洞(22 个中等漏洞,12 个高漏洞)),然后收到此错误。
    猜你喜欢
    • 1970-01-01
    • 2018-11-18
    • 2018-11-22
    • 2014-12-10
    • 2020-12-25
    • 2019-09-10
    • 2020-06-30
    • 2021-11-18
    • 2023-03-19
    相关资源
    最近更新 更多