windows 下, wr 'lessc --source-map lessname.less cssname.css' lessname.less ,當(dāng)文件發(fā)生變化時(shí)。node直接報(bào)錯(cuò)。
windows 下, wr 'lessc --source-map lessname.less cssname.css' lessname.less ,當(dāng)文件發(fā)生變化時(shí)。node直接報(bào)錯(cuò)。
PS:無論是window的cmd或者,git bash 都如此。
2015-06-03
您好,可能是 node 版本導(dǎo)致的,可以嘗試使用 nvm 工具修改 node 版本。謝謝!
2015-08-11
保存時(shí)報(bào)錯(cuò)解決辦法:
wr工具此時(shí)執(zhí)行的是spawn,需要執(zhí)行的是exec,正確的代碼為:wr --exec "lessc --source-map 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
2015-07-28
同上,求解決啊,老師
2015-07-03
同求,最新的node.js?版本是提示這個(gè)