Cakephp Cake command returns No such file or directory

后端 未结 5 1047

I have been using the cake command on my linux server for 2 years. but now im trying to move to a new server and some how the cake command gives back the error: No such file or

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-10 09:37

    I encountered the same problem as well, but the top answer reminded me of a similar problem I faced before: https://stackoverflow.com/a/5514351/1097483

    Basically, instead of using dos2unix or installing it, you can open the file in vim, do

    :set fileformat=unix
    

    And save it.

提交回复
热议问题