npm ошибки запуска прокси - PullRequest
0 голосов
/ 19 апреля 2020

Каждый раз, когда я запускаю npm start для моего приложения реагирования, я получаю несколько ошибок прокси:

Proxy error: Could not proxy request /deryl/js/init.js from localhost:8080 to http://localhost:8080. See https://nodejs.org/api/errors.html#errors_common_system_errors for more information (ENFILE).

Proxy error: Could not proxy request /deryl/queup/static/js/bundle.js from localhost:8080 to http://localhost:8080. See https://nodejs.org/api/errors.html#errors_common_system_errors for more information (ECONNRESET).

Proxy error: Could not proxy request /deryl/queup/static/js/main.chunk.js from localhost:8080 to http://localhost:8080. See https://nodejs.org/api/errors.html#errors_common_system_errors for more information (ENFILE).

Proxy error: Could not proxy request /deryl/queup/static/js/bundle.js from localhost:8080 to http://localhost:8080. See https://nodejs.org/api/errors.html#errors_common_system_errors for more information (ENFILE).

Proxy error: Could not proxy request /deryl/queu/favicon.ico from localhost:8080 to http://localhost:8080. See https://nodejs.org/api/errors.html#errors_common_system_errors for more information (ENFILE).

Эта проблема возникает после того, как я установил зависимость для @ babel / plugin-offer-throw-expressions, запустил npm исправление аудита (для исправления уязвимостей), обновил реагирующий скрипт с 3.3.0 до 3.4.0 и запустил npm install.

Это мой пакет. json:

{
  "name": "queup",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "argon2": "^0.23.0",
    "argon2themax": "^1.2.0",
    "body-parser": "^1.19.0",
    "bootstrap": "^4.4.1",
    "isomorphic-ws": "^4.0.1",
    "mongoose": "^5.6.2",
    "nodemailer": "^6.3.0",
    "react": "^16.8.6",
    "react-bootstrap": "^1.0.0-beta.16",
    "react-burger-menu": "^2.6.10",
    "react-dom": "^16.8.6",
    "react-responsive": "^6.1.2",
    "react-router-dom": "^5.0.0",
    "react-scripts": "^3.4.0",
    "sweetalert2": "^8.11.7",
    "ws": "^7.1.2"
  },
  "scripts": {
    "start": "PORT=8080 react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
  },
  "eslintConfig": {
    "extends": "react-app"
  },
  "browserslist": {
    "production": [
      ">0.2%",
      "not dead",
      "not op_mini all"
    ],
    "development": [
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version"
    ]
  },
  "proxy": "http://localhost:8080",
  "description": "Routes",
  "main": "server.js",
  "repository": {
    "type": "git",
    "url": "git+https://gitlab.com/deryl/queup.git"
  },
  "author": "",
  "license": "ISC",
  "bugs": {
    "url": "https://gitlab.com/deryl/queup/issues"
  },
  "homepage": "https://gitlab.com/deryl/queup#readme",
  "devDependencies": {
    "@types/express": "^4.17.1",
    "@types/ws": "^6.0.3",
    "typescript": "^3.6.3"
  }
}
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...