clean-docker / Magento2

Docker Image to Magento 2 local development in Mac, Linux and Windows
https://hub.docker.com/r/rafaelcgstz/magento2/
MIT License
444 stars 251 forks source link

/usr/bin/env: 'php\r': No such file or directory #84

Open hagertyelliot opened 5 years ago

hagertyelliot commented 5 years ago

When trying to run ./magento on an existing Magento project I get the following error:

/usr/bin/env: 'php\r': No such file or directory

pdwjun commented 4 years ago

When trying to run ./magento on an existing Magento project I get the following error:

/usr/bin/env: 'php\r': No such file or directory

This is because there is a "\r" in the first line. Try this command tr -d '\15' <magento> ./magento2 mv magento2 magento