-
Notifications
You must be signed in to change notification settings - Fork 481
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
Version: 0.12.0. /usr/bin/env: ‘node\r’: No such file or directory #424
Comments
Ran into this because I tried to install with yarn via You have to install with npm per the readme (npm converts the line endings):
|
Another workaround is to call the
This is useful if jscodeshift is being called as part of a script, and the package is installed separately or if it's not possible to use a different package manager |
This is still an issue in 0.13.0. |
Note that you can't do that if you use Lerna as it creates a bash script in place of the |
You can also reference the package.js
|
Still an issue in the latest version. Only way to combat this was to downgrade to 0.11.0 which does not have the same issue. |
You could also use |
any workaround on m1? |
@sibelius, works on m1
|
node node_modules/.bin/jscodeshift -t ... is not working for me |
it gives the same error even with |
This is strange... I'm not sure how Windows line endings ended up in the file. I do publish jscodeshift from a Windows PC, but I also publish other things and haven't had an issue with any of the others. Hmm. |
I think the issue is not in the windows line-ending per se, I guess node is smart enough to work with it. what's not smart enough is bash - the |
here more on this https://techtalkbook.com/env-noder-no-such-file-or-directory/ |
anybody can give a try here #549? |
Execute jscodeshift with an error
The text was updated successfully, but these errors were encountered: