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 #5

Closed
taoliujun opened this issue Feb 16, 2022 · 4 comments · Fixed by #6
Closed

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

taoliujun opened this issue Feb 16, 2022 · 4 comments · Fixed by #6
Assignees

Comments

@taoliujun
Copy link

taoliujun commented Feb 16, 2022

There is a bug show env: node\r: No such file or directory when i used below.

`
yarn add -D github-readme-to-html

yarn github-readme-to-html
`

Because the file ./node_modules/github-readme-to-html/index.js with DOS-style newlines. fix it below.

`
vim index.js

:se ff=unix
:wq
`

@taoliujun taoliujun reopened this Feb 16, 2022
@jrnewton
Copy link
Owner

Hi @taoliujun -

What OS are you using and what version of yarn? I'd like to reproduce it first before I convert the file line endings.

@taoliujun
Copy link
Author

Hi @taoliujun -

What OS are you using and what version of yarn? I'd like to reproduce it first before I convert the file line endings.

mac osx 11.5 (20G71)

yarn 1.22.17

jrnewton added a commit that referenced this issue Mar 28, 2022
Follow the suggestions in yarnpkg/yarn#5480

- establish .editorconfig setting to ensure LF is used by editor
- establish .gitattributes setting to ensure LF is used upon checkout

Convert existing files to LF via dos2unix.
@jrnewton
Copy link
Owner

Hey @taoliujun -

Please install 1.0.7 beta and verify that it works for you.

yarn add -D github-readme-to-html@beta

@jrnewton jrnewton self-assigned this Mar 28, 2022
@jrnewton jrnewton linked a pull request Mar 28, 2022 that will close this issue
jrnewton added a commit that referenced this issue Mar 28, 2022
…tory

Fix #5 - windows line endings break yarn usage
@jrnewton
Copy link
Owner

I found an iMac to test on. Fix released in 1.0.7.

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

Successfully merging a pull request may close this issue.

2 participants