我是新手,我想用我的代码创建 生产环境 版本 . 但是当我运行'npm rub build'时,它会在.log文件中给出这个错误

0信息,如果它以ok 1 verbose cli结尾['/usr/local/Cellar/node/9.11.1/bin/node',1 verbose cli'/ usr / local / bin / npm',1 verbose cli 'run',1 verbose cli'build'] 2 info使用npm@5.6.0 3 info使用node@v9.11.1 4 verbose run-script ['prebuild','build','postbuild'] 5 info lifecycle jenna- web-frontend@0.1.0~prebuild:jenna-webfrontend@0.1.0 6 info lifecycle jenna-web-frontend@0.1.0~build:jenna-web-frontend@0.1.0 7 verbose lifecycle jenna-web-frontend @ 0.1.0~build:生命周期中的unsafe-perm true 8详细生命周期jenna-web-frontend@0.1.0~build:PATH:/ usr / local / lib / node_modules / npm / node_modules / npm -lifecycle / node-gyp-斌:/Users/markopetricic/Documents/Projects/staging-jenna-web-front/node_modules/.bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:在/ usr / local / bin目录:在/ usr / bin中:/ bin:/ usr / sbin:/ sbin 9 verbose lifecycle jenna-web-frontend@0.1.0~build:CWD:/ Users / markopetricic / Documents / Projects / staging-jenna-web-front 10傻生命周期jenna-web -frontend@0.1.0~build:A rgs:[' - '','react-scripts build'] 11愚蠢的生命周期jenna-web-frontend@0.1.0~build:返回:代码:1信号:null 12 info lifecycle jenna-web-frontend@0.1.0 ~build:无法执行构建脚本13详细堆栈错误:jenna-web-frontend@0.1.0 build:react-scripts build 13详细堆栈退出状态1 13详细堆栈在EventEmitter . (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:285:16)13详细信息堆栈在EventEmitter.emit(events.js:180:13)13详细堆栈在ChildProcess . (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)13详细信息堆栈在ChildProcess.emit(events.js:180:13)13详细堆栈在maybeClose( internal / child_process.js:936:16)13详细堆栈在Process.ChildProcess._handle.onexit(internal / child_process.js:220:5)14 verbose pkgid jenna-web-frontend@0.1.0 15 verbose cwd / Users / markopetricic / Documents / Projects / staging-jenna-web-front 16 verbose Darwin 17.3.0 17 verbose argv“/usr/local/Cellar/node/9.11.1/bin/node”“/ usr / local / bin / npm” “run”“build”18详细节点v9.11.1 19详细npm v5.6.0 20错误代码ELIFECYCLE 21错误错误1 22错误jenna-web-frontend@0.1.0 build:react-scripts build 22错误退出状态1 23错误jenna-web-frontend@0.1.0构建脚本失败 . 23错误这可能不是npm的问题 . 上面可能有额外的日志记录输出 . 24详细退出[1,true]

这是package.json

{
  "name": "jenna-web-frontend",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "cookieconsent": "^3.0.6",
    "jquery": "^3.3.1",
    "react": "^16.3.0",
    "react-dom": "^16.3.0",
    "react-fade-in": "^0.1.5",
    "react-router-dom": "^4.2.2",
    "react-s3": "^1.2.4",
    "react-s3-uploader": "^4.8.0",
    "react-scripts": "1.1.1",
    "react-stay-scrolled": "^2.1.1",
    "sfcookies": "^1.0.2",
    "socket.io-client": "^2.1.0"
  },
  "scripts": {
    "start": "set PORT=3001 && react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test --env=jsdom",
    "eject": "react-scripts eject"
  }
}

你知道为什么会这样吗?