Node script executable not working on Mac : env: node\r: No such file or directory

前端 未结 6 1149
清酒与你
清酒与你 2021-01-31 19:10

I have created my node script executable to execute some tasks grunt. On Windows, my node script works fine. But on Mac OS X (Yosemite), it\'s not working.

My node scri

6条回答
  •  情话喂你
    2021-01-31 19:29

    You could also use vim:

    vim script
    
    :se ff=unix
    :wq
    

    That will confirm DOS-style newlines to Unix-style newlines.

提交回复
热议问题