-
Notifications
You must be signed in to change notification settings - Fork 405
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
Using Yarn to install dependencies on Mac results in file encoding issues (CRLF) #967
Comments
Same here, using latest version of Yarn stable and Node 10 LTS. |
It's hard to keep track of everything. This issue has been automatically marked as stale because it has not had recent activity, neither from the team nor the community. It will be closed if no further activity occurs. Please consider adding additional info, volunteering to contribute a fix for this issue, or making a further case that this is important to you, the team, and the project as a whole. Thanks! |
Issue closed after going stale. It can be re-opened if still relevant. |
I hate such bots like the stale bot. |
This is still relevant.
and here's some log output for you. I'm using Linux.
|
Sure, this is why it was reopened ;-) |
Upgrading @pattern-lab/cli to 0.0.1-beta.2 resolved this issue for me. I'm not quite sure why, though. I verified there are CRLF line separators in the file packages/cli/bin/patternlab.js at 0.0.1-beta.1 that are fixed in 0.0.1-beta.2. That's true using either yarn or npm, although npm changes the first line break to at LF preventing the "No such file or directory" error. The mystery is I couldn't find a commit that would change the line ending in that file between beta.1 and beta.2. In any case, it's working for me now. |
My best guess is that this is related to the npm issue npm publish from Windows handles CRLF incorrectly Is it possible that the releases prior to |
It's hard to keep track of everything. This issue has been automatically marked as stale because it has not had recent activity, neither from the team nor the community. It will be closed if no further activity occurs. Please consider adding additional info, volunteering to contribute a fix for this issue, or making a further case that this is important to you, the team, and the project as a whole. Thanks! |
Not stale, still relevant. |
It's hard to keep track of everything. This issue has been automatically marked as stale because it has not had recent activity, neither from the team nor the community. It will be closed if no further activity occurs. Please consider adding additional info, volunteering to contribute a fix for this issue, or making a further case that this is important to you, the team, and the project as a whole. Thanks! |
It's hard to keep track of everything. This issue has been automatically marked as stale because it has not had recent activity, neither from the team nor the community. It will be closed if no further activity occurs. Please consider adding additional info, volunteering to contribute a fix for this issue, or making a further case that this is important to you, the team, and the project as a whole. Thanks! |
Not stale. |
It's hard to keep track of everything. This issue has been automatically marked as stale because it has not had recent activity, neither from the team nor the community. It will be closed if no further activity occurs. Please consider adding additional info, volunteering to contribute a fix for this issue, or making a further case that this is important to you, the team, and the project as a whole. Thanks! |
Issue closed after going stale. It can be re-opened if still relevant. |
Not stale. |
Still relevant!!! Also here is the yarn bug: |
I'm getting the same error on MacOS 11.6. EDIT: I found a workaround. I've installed
|
It's hard to keep track of everything. This issue has been automatically marked as stale because it has not had recent activity, neither from the team nor the community. It will be closed if no further activity occurs. Please consider adding additional info, volunteering to contribute a fix for this issue, or making a further case that this is important to you, the team, and the project as a whole. Thanks! |
I also cannot reproduce the issue since v5.16.1. (I could reproduce it with an earlier version—I forgot which.) DetailsI am using Pattern Lab Node |
I am using Pattern Lab Node
v3.0.0.0-beta.1
onMac High Sirerra
, with Nodev10.11.0
, using aVanilla
Edition.There is an issue when using Yarn on unix based systems, I'm using a Mac but I've seen people using Ubuntu experience the same problem and I've not seen it jotted down yet here.
When running 'yarn' files are installed using the encoded line breaks, it appears that NPM changes this to the system specific version. However if the file is encoded with CRLF then this results in the following message
This does not occur on windows, and only appears if you install using
yarn
to get around this it's possible to install usingnpm install
and then usingyarn
to run scriptsThere is an issue about this over on the yarn github page yarnpkg/yarn#5480
I've also spotted a couple of people in the pattern lab gitter.im channel.
Expected Behavior
Files are encoded using LF line separators
Actual Behavior
Many of the files are encoded using CRLF line separators, which results in the error when using
yarn
Steps to Reproduce
Reproduced on a mac High Sierra 10.13.6
yarn
(everything installs)yarn pl:help
It's also possible to run the following
npm init -y && npx @pattern-lab/cli -c patternlab init
None
for the starter templateyarn
yarn pl:help
The text was updated successfully, but these errors were encountered: