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

npm run prod 报错 #6

Closed
change9326 opened this issue Feb 13, 2017 · 1 comment
Closed

npm run prod 报错 #6

change9326 opened this issue Feb 13, 2017 · 1 comment

Comments

@change9326
Copy link

react-antd-admin@1.0.0 prod D:\2017ToDo\MyDo\React\react-antd-admin-master
NODE_ENV=production webpack --progress --colors --config webpack.config.prod.js -p --display-error-details

'NODE_ENV' 不是内部或外部命令,也不是可运行的程序
或批处理文件。

npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "run" "prod"
npm ERR! node v7.5.0
npm ERR! npm v4.1.2
npm ERR! code ELIFECYCLE
npm ERR! react-antd-admin@1.0.0 prod: NODE_ENV=production webpack --progress --colors --config webpack.config.prod.js -p --display-error-details
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the react-antd-admin@1.0.0 prod script 'NODE_ENV=production webpack --progress --colors --config webpack.config.prod.js -p --display-error-details'.
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 react-antd-admin package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! NODE_ENV=production webpack --progress --colors --config webpack.config.prod.js -p --display-error-details
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs react-antd-admin
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls react-antd-admin
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! D:\2017ToDo\MyDo\React\react-antd-admin-master\npm-debug.log

@jiangxy
Copy link
Owner

jiangxy commented Feb 14, 2017

在windows下使用是会有点问题的 之前没考虑到
应该已经修复了 重新拉下代码再试试?

@jiangxy jiangxy closed this as completed Mar 18, 2017
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