Magento2 icon indicating copy to clipboard operation
Magento2 copied to clipboard

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

Open hagertyelliot opened this issue 6 years ago • 1 comments

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

hagertyelliot avatar Apr 01 '19 18:04 hagertyelliot

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

pdwjun avatar Dec 30 '19 03:12 pdwjun