为什么npm start报错
来源:1-5 体验npm start 和 npm run build命令
说起来你不信
2017-05-24
> react-dianping-webpack@1.0.0 start C:\Users\Administrator\Desktop\dianping\react-dianping-master > NODE_ENV=dev webpack-dev-server --progress --colors 'NODE_ENV' 不是内部或外部命令,也不是可运行的程序 或批处理文件。 npm ERR! Windows_NT 6.1.7601 npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Administrator\\AppData\\Roaming\\npm\\node_modules\\cnpm\\node_modules\\npm\\bin\\n pm-cli.js" "--userconfig=C:\\Users\\Administrator\\.cnpmrc" "--disturl=https://npm.taobao.org/mirrors/node" "--registry=https://registry.npm.taobao .org" "start" npm ERR! node v6.10.0 npm ERR! npm v3.10.10 npm ERR! code ELIFECYCLE npm ERR! react-dianping-webpack@1.0.0 start: `NODE_ENV=dev webpack-dev-server --progress --colors` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the react-dianping-webpack@1.0.0 start script 'NODE_ENV=dev webpack-dev-server --progress --colors'. 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-dianping-webpack package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! NODE_ENV=dev webpack-dev-server --progress --colors npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs react-dianping-webpack npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls react-dianping-webpack npm ERR! There is likely additional logging output above. npm WARN Local package.json exists, but node_modules missing, did you mean to install? npm ERR! Please include the following file with any support request: npm ERR! C:\Users\Administrator\Desktop\dianping\react-dianping-master\npm-debug.log
运行的就是参考代码
写回答
4回答
-
低级前端开花工程师
2017-06-07
修改了又出现这个报错是怎么回事呢
00 -
双越
2017-05-24
你题目中说是
> NODE_ENV=dev webpack-dev-server --progress --colors
这个报错,很明显没有改 'set NODE_ENV ...'
00 -
双越
2017-05-24
windows中,NODE_ENV=dev webpack-dev-server --progress --colors 这个要改成 set NODE_ENV=dev && webpack-dev-server --progress --colors
012017-05-24 -
说起来你不信
提问者
2017-05-24
根据1-4改了代码之后还是报这个错误
00
相似问题