首页 > npm run dev 报错

npm run dev 报错

按照教程配置环境,下载文件,http://my.oschina.net/u/1403181/blog/672501,参照这篇文章,确认一致。有如下报错:
12 error Darwin 13.4.0
13 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "dev"
14 error node v4.4.4
15 error npm v2.15.1
16 error code ELIFECYCLE
17 error reactpro1@1.0.0 dev: webpack-dev-server --devtool eval --progress --colors --content-base build
17 error Exit status 1
18 error Failed at the reactpro1@1.0.0 dev script 'webpack-dev-server --devtool eval --progress --colors --content-base build'.
18 error This is most likely a problem with the reactpro1 package,
18 error not with npm itself.
18 error Tell the author that this fails on your system:
18 error webpack-dev-server --devtool eval --progress --colors --content-base build
18 error You can get information on how to open an issue for this project with:
18 error npm bugs reactpro1
18 error Or if that isn't available, you can get their info via:
18 error
18 error npm owner ls reactpro1
18 error There is likely additional logging output above.
19 verbose exit [ 1, true ]


webpack-dev-server是全局安装的吗?如果不是就用node_modules/bin/webpack-dev-server。


请检查下node和npm的版本是否符合 当前项目要求的版本

【热门文章】
【热门文章】