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
gregpasha opened this issue Nov 9, 2017 · 5 comments
Open

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

gregpasha opened this issue Nov 9, 2017 · 5 comments

Comments

@gregpasha
Copy link

Hi - I am trying to use this on a mac and get the following error: env: node\r: No such file or directory. Do you have any suggestions?

thanks!
greg

@slysenko
Copy link

slysenko commented Nov 9, 2017

vim /usr/local/bin/convertSnippets
:set ff=unix
:wq

@bernatfortet
Copy link

Same problem here, @slysenko I could't figure out how to fix the issue with your suggestion.
I guess the files need to be converted from windows format to unix? is that the issue?

@slysenko
Copy link

slysenko commented Mar 7, 2018

the suggestion that worked for me was to set the file format to Unix.
so what you want to do is to open the file in vim editor, type ':' then type in 'set ff=unix', press Enter, then type ':' then type in 'wq' to save and exit

@bernatfortet
Copy link

@slysenko thanks for the clarification, that's what I was doing but it was not creating any effect for some reason.
I ended up using this:
awk '{ sub("\r$", ""); print }' winfile.txt > unixfile.txt
Thanks

@matbrady
Copy link

Wasn't really clear from the discussion on how to resolve the issue. I was able to convert my extensions by installing the module locally and running the command. example:

node node_modules/convert-atom-snippets-to-vscode/src/command.js snippets/ vs-snippets/

this converts all the atom snippets in the snippets directory and creates VS Code snippets in a vs-snippets directory

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

4 participants