Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dva-cli创建的项目build失败 #76

Open
williambryan777 opened this issue Mar 16, 2017 · 1 comment
Open

dva-cli创建的项目build失败 #76

williambryan777 opened this issue Mar 16, 2017 · 1 comment

Comments

@williambryan777
Copy link

dva-cli 和roadhog 都是全局安装的,开发能够跑起来(npm run start),就是build的时候失败,报以下错误:
npm ERR! Darwin 16.4.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "build"
npm ERR! node v7.3.0
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! @ build: roadhog build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ build script 'roadhog build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! roadhog build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /Users/efmichaelyoung/Documents/code/javascript/react-demo/dva/user-dashboard/npm-debug.log

@prionkor
Copy link

@williambryan777 Facing same issue when I run npm run build Was you able to fix it?

I have tried to fix by deleting node_modules folder then reinstall all packages. But didn't help. Below is my package.json file

Package.json

{
  "name": "kallzu-chatbot-control-panel",
  "version": "1.0.0",
  "private": true,
  "scripts": {
    "start": "roadhog server",
    "build": "roadhog build",
    "lint": "eslint --ext .js src test",
    "precommit": "npm run lint"
  },
  "dependencies": {
    "antd": "^3.9.2",
    "dva": "^2.4.0",
    "prop-types": "^15.6.2",
    "react": "^16.2.0",
    "react-copy-to-clipboard": "^5.0.1",
    "react-dom": "^16.2.0",
    "react-helmet": "^5.2.0",
    "react-linkify": "^0.2.2",
    "react-moment": "^0.7.9",
    "react-quill": "^1.3.1"
  },
  "devDependencies": {
    "babel-plugin-dva-hmr": "^0.3.2",
    "babel-plugin-import": "^1.9.1",
    "eslint": "^4.14.0",
    "eslint-config-umi": "^0.1.1",
    "eslint-plugin-flowtype": "^2.34.1",
    "eslint-plugin-import": "^2.6.0",
    "eslint-plugin-jsx-a11y": "^5.1.1",
    "eslint-plugin-react": "^7.1.0",
    "husky": "^0.12.0",
    "redbox-react": "^1.4.3",
    "roadhog": "^2.0.0"
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants