gpt4 book ai didi

reactjs - fsevents@2.3.2 安装问题的平台不受支持

转载 作者:行者123 更新时间:2023-12-04 11:13:09 27 4
gpt4 key购买 nike

一段时间以来,我一直在尝试将我的应用程序部署到 vercel,并且已经阅读了许多关于 stackoverflow 的帖子,其中包含相同/类似的 fsevents问题。尽管如此,我仍然收到下面发布的相同错误。
我尝试过的事情:

  • 卸载 node_modules & package-lock.json ,然后运行:npm i -f
  • 添加 "optionalDependencies": {"fsevents": "^2.3.2"} ,然后 npm i -f
  • 安装没有 fseventspackage.json
  • ... 以及许多其他尝试

  • 我的部署中总是发生的事情的屏幕截图
    我对整个 fsevents/chokidar 包的内容/原因不是很熟悉,但在我阅读完之后,我的 MacOS 似乎需要它,我真的很感激一些解决这个问题的想法。
    enter image description here
    当前包.json
    {
    "name": "my-app",
    "version": "0.1.0",
    "private": true,
    "scripts": {
    "dev": "next dev",
    "build": "next build",
    "start": "next start",
    "lint": "eslint .",
    "lint:fix": "eslint --fix ."
    },
    "husky": {
    "hooks": {
    "pre-commit": "lint-staged"
    }
    },
    "lint-staged": {
    "src/**/*.{js,jsx,ts,tsx}": [
    "prettier --write",
    "eslint --fix ."
    ]
    },
    "dependencies": {
    "firebase": "^8.2.5",
    "firebase-admin": "^9.4.2",
    "firebase-functions": "^3.13.1",
    "fsevents": "^2.3.2",
    "js-cookies": "^1.0.4",
    "next": "10.0.6",
    "next-pwa": "^5.0.5",
    "nookies": "^2.5.2",
    "react": "17.0.1",
    "react-dom": "17.0.1",
    "react-redux": "^7.2.2",
    "redux": "^4.0.5",
    "redux-thunk": "^2.3.0",
    "styled-components": "^5.2.1"
    },
    "optionalDependencies": {
    "fsevents": "^2.3.2"
    },
    "devDependencies": {
    "@types/node": "^14.14.25",
    "@types/react": "^17.0.1",
    "@types/react-redux": "^7.1.16",
    "@types/styled-components": "^5.1.7",
    "babel-eslint": "^9.0.0",
    "eslint": "^6.8.0",
    "eslint-config-airbnb": "^18.2.1",
    "eslint-config-nextjs": "^1.0.7",
    "eslint-config-prettier": "^4.3.0",
    "eslint-plugin-html": "^5.0.5",
    "eslint-plugin-import": "^2.22.1",
    "eslint-plugin-jsx-a11y": "^6.4.1",
    "eslint-plugin-prettier": "^3.3.1",
    "eslint-plugin-react": "^7.22.0",
    "eslint-plugin-react-hooks": "^1.7.0",
    "husky": "^4.3.8",
    "lint-staged": "^10.5.3",
    "prettier": "^1.19.1",
    "redux-devtools-extension": "^2.13.8",
    "typescript": "^4.1.3",
    "webpack": "^5.21.1"
    }
    }

    最佳答案

    很多人提示这要追溯到几年前。
    有时修复是升级到更新的 npm。 (运行 npm 7.7 并且仍然拥有它)
    通常修复只是:

    npm install -f
    所以强制它在这里工作得很好。

    关于reactjs - fsevents@2.3.2 安装问题的平台不受支持,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66093284/

    27 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com