Error about /usr/bin/env: ‘node\r’: No such file or directory

Oh I see. I found I commit the file with Windows-style line break in the bin entry file of my npm package. And the first line originally was used to declare this file will be executed by Node.js, so it failed with the additional \r character. After setting git config core.autocrlf input and re-commit the problem was solved.

Thanks.

1 Like