React服务器(前端)正在阻止快速服务器(后端)

时间:2020-07-16 10:34:06

标签: node.js reactjs web-applications frontend backend

这是我的 package.json 文件

{

      "name": "crypto",
      "version": "1.0.0",
      "main": "index.js",
      "scripts": {
        "test": "jest --watchAll",
        "start": "npm run build-client && node index.js",
        "dev": "npm run dev-client & npm run start-redis && cross-env ENV='development' nodemon index.js",
        "dev-peer": "cross-env GENERATE_PEER_PORT='true' ENV='development' nodemon index.js",
        "start-redis": "redis-server --daemonize yes",
        "build-client": "npm run clean && parcel build client/src/index.html --out-dir client/dist",
        "dev-client": "npm run clean && parcel client/src/index.html --out-dir client/dist",
        "clean": "rm -rf .cache client/dist"
      },
      "jest": {
        "testEnvironment": "node"
      },
      "keywords": [],
      "author": "",
      "license": "ISC",
      "devDependencies": {
        "cross-env": "^7.0.2",
        "jest": "^26.0.1",
        "nodemon": "^2.0.4"
      },
      "dependencies": {
        "body-parser": "^1.19.0",
        "elliptic": "^6.5.3",
        "express": "^4.17.1",
        "hex-to-binary": "^1.0.1",
        "parcel-bundler": "^1.12.4",
        "pubnub": "^4.28.1",
        "react": "^16.13.1",
        "react-dom": "^16.13.1",
        "redis": "^3.0.2",
        "request": "^2.88.2",
        "uuid": "^3.3.2"
      },
      "description": ""
    }

运行命令npm run dev时,我收到以下结果

$ npm run dev

crypto@1.0.0 dev C:\ Users \ Education Use \ crypto npm run dev-client&npm run start-redis && cross-env ENV ='development'nodemon index.js

crypto@1.0.0 dev-client C:\ Users \ Education Use \ crypto npm运行clean &&包裹client / src / index.html --out-dir client / dist

crypto@1.0.0清除C:\ Users \ Education Use \ crypto rm -rf .cache client / dist

服务器运行在http:// localhost:1234 in内置107.61秒。

正在运行开发客户端阻止epress服务器。 请引导我...

0 个答案:

没有答案
相关问题