Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.

Bug: /usr/bin/env: ‘node\r’: No such file or directory #1

Open
kulbon opened this issue May 25, 2022 · 5 comments
Open

Bug: /usr/bin/env: ‘node\r’: No such file or directory #1

kulbon opened this issue May 25, 2022 · 5 comments
Labels
bug Something isn't working next release

Comments

@kulbon
Copy link

kulbon commented May 25, 2022

After the installation, I try to run swagger-typescript-api-nextgen. However, there's an error saying /usr/bin/env: ‘node\r’: No such file or directory.
Finally, I found the solution to the problem.
Just to use dos2unix to convert package to Unix format. It's because files contains CRLF line endings instead of LF (\r instead of \n) with are Windows line endings.
I'm on linux.

@tyler-sydecar
Copy link

I'm experiencing this issue on a mac as well.

@youngjaeji
Copy link

+1

@choi2k
Copy link

choi2k commented Jun 8, 2022

another workaround on mac m1

# add to dependencies
yarn add -D swagger-typescript-api-nextgen
# run it with npx 
npx swagger-typescript-api-nextgen ....

@mutoe
Copy link

mutoe commented Jun 11, 2022

Same issue here. :(

@grandsilence grandsilence added bug Something isn't working next release labels Jun 11, 2022
@grandsilence
Copy link
Owner

I will fix it in the next release. Thank you.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working next release
Projects
None yet
Development

No branches or pull requests

6 participants