windows 下, wr 'lessc --source-map lessname.less cssname.css' lessname.less ,當文件發生變化時。node直接報錯。
windows 下, wr 'lessc --source-map lessname.less cssname.css' lessname.less ,當文件發生變化時。node直接報錯。
PS:無論是window的cmd或者,git bash 都如此。
windows 下, wr 'lessc --source-map lessname.less cssname.css' lessname.less ,當文件發生變化時。node直接報錯。
PS:無論是window的cmd或者,git bash 都如此。
2015-06-02
舉報
2015-06-03
您好,可能是 node 版本導致的,可以嘗試使用 nvm 工具修改 node 版本。謝謝!
2015-08-11
保存時報錯解決辦法:
wr工具此時執行的是spawn,需要執行的是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?版本是提示這個