-
Notifications
You must be signed in to change notification settings - Fork 1
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
Tool does not work on Mac OS #1
Comments
Hi! Thank you for the input! I have an outstanding PR where I corrected the line endings on my source files. I have pubished a patch under I did, however, install and run the 1.0.0 version on a Mac Mini and didn't have problems running the tool. Did you try running it in Bash, or were you using another shell? Thank you so much for the input! |
Hi Cesar, thanks for the quick response! I did some research and here is what I found: Problematic file I've thought that this might be yarn's problem so I've downloaded the raw package from the: https://registry.npmjs.org/react-intl-universal-pseudo-converter/-/react-intl-universal-pseudo-converter-1.0.0.tgz and when I peeked into the package I see that What's even more interesting is that when I run So to summarize: This looks like you've published a CRLF version by mistake, or there was maybe some sort of automatic conversion of LF -> CRLF during publish like explained in this issue: npm/npm#2097. So perhaps all you need to do is to re-publish from Mac or re-publish using yarn. I've cloned the repo and inspected the file in the When inspecting the |
Interesting! Now that I think about it, I think I may have published the original 1.0.0 version from a Windows machine, so the behavior described above makes sense. I will merge the changes back to master, and publish a version 1.0.1 to correct the problem. I am wondering if creating a .gitattributes file with the proper specification would allow for publishing on Windows to avoid introducing the CR characters... still this is good information. For now I will make sure to only publish on POSIX environments to ensure compatibility. Thanks!! |
I have added version 1.0.1 to the NPM registry. I will keep the issue open in case you encounter a problem with Yarn. |
I've tested 1.0.1 and it works well with both Thanks! |
Hello, and first of all thanks for this awesome tool!
Tool does not work on mac since file
src/index.js
is using Windows file endings (\r\n
). Since this file is being run as a bash script the first line#! /usr/bin/env node
fails with an errorenv: node\r: No such file or directory
.It's always safest to keep Unix line endings (simple
\n
) when working on node.js projects. In VS Code there is a commandChange End Of Line Sequence
for single files or you can setFiles: EOL
option in settings to\n
. Changing EOL forsrc/index.js
fixes the issue.The text was updated successfully, but these errors were encountered: