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

Error: env: node\r: No such file or directory #140

Closed
1 of 4 tasks
majapersson opened this issue May 12, 2020 · 3 comments
Closed
1 of 4 tasks

Error: env: node\r: No such file or directory #140

majapersson opened this issue May 12, 2020 · 3 comments

Comments

@majapersson
Copy link

I'm submitting a...

  • Bug report
  • Feature request
  • Documentation issue or request
  • Other... Please describe:

Expected Behavior

Running jovo after installing the CLI should not give an error.

Current Behavior

Installed [email protected] globally using both yarn and npm. The installation runs fine, but running the CLI gives an error. Seems to be related to line endings, but it doesn't give me any information about where. Probably related to this closed issue on the jovo-framework repo.

Error log

$ jovo -v
env: node\r: No such file or directory

Your Environment

  • Jovo CLI version used: 3.0.11
  • Node version: 12.16.3
  • Operating System: macOS Mojave 10.14.6
@jankoenig
Copy link
Member

Hi @majapersson, investigating this. Tried to reproduce with this system: jovo-cli/3.0.11 darwin-x64 node-v12.16.3

The jovo and jovo -v both work for me though. Will dig deeper

@krokben
Copy link

krokben commented May 12, 2020

Okay I just fixed it by installing dos2unix with brew install dos2unix, then going to user$/.config/yarn/global and writing dos2unix -F node_modules/.bin/*. in the terminal. Look at this issue for more info:
yarnpkg/yarn#5480

@majapersson
Copy link
Author

That fixed it for me as well. Thank you @krokben! 🙏

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

3 participants