-
Notifications
You must be signed in to change notification settings - Fork 2
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
Does not work in Linux (Ubuntu 18.04) #2
Comments
It looks like the cli.js file contains Windows line endings when pulled from the npm repository. The cli.js from the GitHub repo works fine. In the test project, when I go into node_modules/move-cli and run |
I can't reproduce your issue, I did the steps exactly like you, also on Ubuntu 18.04 and it just works. |
I have just released a new version, where the CLRF line endings should be just LF, please let me know, if that fixed your issue. Thanks! |
Interesting, I think it's because I was using Yarn. I just tried both versions and 1.2.0 works when installed with npm, but not with Yarn. Now the new version (1.2.1) seems to work when installed either with npm or Yarn. |
Yup, looks like there are open CRLF issues on Yarn: yarnpkg/yarn#5480 |
Steps to reproduce:
npm init
)npm install --save move-cli
)touch test.txt
and add a script to package.json:"move": "move-cli test.txt test2.txt"
)npm run move
)Result:
Expected:
Should be able to move a file in linux (Ubuntu 18.04 x64 in this case)
The text was updated successfully, but these errors were encountered: