Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

env: node\r: No such file or directory #1

Open
johndpope opened this issue Sep 27, 2019 · 1 comment
Open

env: node\r: No such file or directory #1

johndpope opened this issue Sep 27, 2019 · 1 comment

Comments

@johndpope
Copy link

johndpope commented Sep 27, 2019

env: node\r: No such file or directory
error Command failed with exit code 127.

seems like there's a fix
https://stackoverflow.com/questions/30344858/node-script-executable-not-working-on-mac-env-node-r-no-such-file-or-directo

https://stackoverflow.com/questions/30344858/node-script-executable-not-working-on-mac-env-node-r-no-such-file-or-directo

brew install dos2unix
dos2unix ./node_modules/@progresso/openapi-typescript-client-api-generator/bin/generator
@mint-dewit
Copy link

This is issue is caused by invalid line endings. Using git config to always use LF line endings instead of CRLF this issue can be prevented.

Changing line endings in the bin/generator file works but manually editing files in node_modules is not great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants