为了账号安全,请及时绑定邮箱和手机立即绑定

wr报错怎么弄

http://img1.sycdn.imooc.com//55640ec90001927006760231.jpg

监听的是2个东西,改变less还会报错,是什么问题那

正在回答

9 回答

wr 参数后面跟的命令使用双引号引起来的,试试这样:

wr "lessc duang.less duang.css" duang.les

0 回复 有任何疑惑可以回复我~
#1

慕村1564197 提问者

还是报错啊,一存就报错
2015-06-02 回复 有任何疑惑可以回复我~
#2

大雅 回复 慕村1564197 提问者

对 我的也是,你解决了吗?求解啊
2015-06-18 回复 有任何疑惑可以回复我~

保存时报错解决办法:

wr工具此时执行的是spawn,需要执行的是exec,正确的代码为:wr --exec "lessc duang.less duang.css" duang.less。详解如下:

exec:

the command will not be parsed, as will be run as given

should handle i/o redirection shell operators

stdout and stderr output will be buffered until the command is complete

spawn:

the command will be parsed into space separated tokens, probably misinterpreting any quotes you have in your command

will not handle i/o redirection shell operators

stdout and stderr output will not be buffered

详解来源:https://www.npmjs.com/package/wr


2 回复 有任何疑惑可以回复我~
#1

Killer_Lee

可以哦,谢谢!
2015-11-04 回复 有任何疑惑可以回复我~

我的也是,老师怎么解决……

0 回复 有任何疑惑可以回复我~

我的也是啊。。。怎么解决啊。。请各位大侠指教。百度了半天也没解决

0 回复 有任何疑惑可以回复我~

老师那,老师死出来

0 回复 有任何疑惑可以回复我~

出现同样错误求解

0 回复 有任何疑惑可以回复我~

我的也是,搞不定啊

0 回复 有任何疑惑可以回复我~

window下输入命令 可以watch成功,但是一改变less 保存就报错。

0 回复 有任何疑惑可以回复我~

http://img1.sycdn.imooc.com//556b18560001d8ad07180357.jpg

太扯淡老师,我这里是双引号仍然报错啊

0 回复 有任何疑惑可以回复我~
#1

大雅

嗯嗯 双引号果然好了
2015-06-18 回复 有任何疑惑可以回复我~
#2

大雅

我跟你的一样 保存时报错
2015-06-18 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

wr报错怎么弄

我要回答 关注问题
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号