fans
fans copied to clipboard
运行命令npm run R_DEV 报错
您好,运行命令错误信息如下,请问下是什么原因?thanks! E:\MUI源码\fans-master>npm run R_DEV
[email protected] 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! [email protected] 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 [email protected] 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!
@zouyujie 先检查一下node(6.10.1以上) npm(3.10.10以上)版本 如果版本没有问题 确认一下你的npm 包有没有安装完(特别检查一下webpack-dev-server包)
我重新安装了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
@zouyujie 没有报错了吗?
@yujinjin 是的,没报错了,但是一直停留在那个地方不动
@zouyujie 最后怎么解决的啊,我也遇到这个问题了。
@cfhy 确认一下webpack的版本,如果确认不了先npm install一遍。
@yujinjin webpack 版本是3.5.5,才发现直接运行是可以出来界面的