yujinjin / fans

这是一个app(android/iOS)项目,但页面视图全部都用的是html5页,没有使用app的原生页面。 前端h5是基于mui + vue2 + vue-router2 + es6 + webpack2 + vuex + signalR 的前端webApp单页项目框架,项目可以直接在PC上运行html5页面。 app打包技术是用HBuilder IDE工具一键打包成APP。
417 stars 150 forks source link

运行命令npm run R_DEV 报错 #13

Open zouyujie opened 7 years ago

zouyujie commented 7 years ago

您好,运行命令错误信息如下,请问下是什么原因?thanks! E:\MUI源码\fans-master>npm run R_DEV

Fans@1.0.0 R_DEV E:\MUI源码\fans-master set NODE_RUN=1&&webpack-dev-server --progress --watch --inline --host=127.0.0. 0 --port 8083

'webpack-dev-server' is not recognized as an internal or external command, operable program or batch file.

npm ERR! Windows_NT 6.1.7601 npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\ node_modules\npm\bin\npm-cli.js" "run" "R_DEV" npm ERR! node v7.0.0 npm ERR! npm v3.10.8 npm ERR! code ELIFECYCLE npm ERR! Fans@1.0.0 R_DEV: set NODE_RUN=1&&webpack-dev-server --progress --watc h --inline --host=127.0.0.0 --port 8083 npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the Fans@1.0.0 R_DEV script 'set NODE_RUN=1&&webpack-dev-serv er --progress --watch --inline --host=127.0.0.0 --port 8083'. 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 Fans package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! set NODE_RUN=1&&webpack-dev-server --progress --watch --inline --ho st=127.0.0.0 --port 8083 npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs Fans npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls Fans npm ERR! There is likely additional logging output above. npm WARN Local package.json exists, but node_modules missing, did you mean to in stall?

npm ERR! Please include the following file with any support request: npm ERR!

yujinjin commented 7 years ago

@zouyujie 先检查一下node(6.10.1以上) npm(3.10.10以上)版本 如果版本没有问题 确认一下你的npm 包有没有安装完(特别检查一下webpack-dev-server包)

zouyujie commented 7 years ago

我重新安装了npm包,但是发现新的问题,那就是每次编译到这个地方就不动了,不知道什么原因? 69% building modules 543/546 modules 3 active ..._Source\fans-master\src\less\a 69% building modules 544/546 modules 2 active ..._Source\fans-master\src\less\a 69% building modules 545/546 modules 1 active ..._Source\fans-master\src\less\a

yujinjin commented 7 years ago

@zouyujie 没有报错了吗?

zouyujie commented 7 years ago

@yujinjin 是的,没报错了,但是一直停留在那个地方不动

cfhy commented 6 years ago

@zouyujie 最后怎么解决的啊,我也遇到这个问题了。 image

yujinjin commented 6 years ago

@cfhy 确认一下webpack的版本,如果确认不了先npm install一遍。

cfhy commented 6 years ago

@yujinjin webpack 版本是3.5.5,才发现直接运行是可以出来界面的 image