-
Notifications
You must be signed in to change notification settings - Fork 7
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
press-export-pdf.mjs is generated with CRLF line ends #24
Comments
Interesting. When I When I download the file directly from the repo and run So the file in the repo is correct, but the file after installing the package is not. So I again So I installed it globally via So looks like this is not a issue of this npm package more maybe some package mangement or local configuration problem. However I don't have this issue with other packages and never had. Very interesting 🤔 |
So I narrowed down this issue to the Yarn Registry (ttps://registry.yarnpkg.com). When I remove my $ rm -rf .npmrc yarn.lock package-lock.json node_modules/
$ npm cache clean --force
$ npm i
$ file node_modules/vitepress-export-pdf/bin/press-export-pdf.mjs
[...] ASCII text, with CRLF, LF line terminators
$ press-export-pdf
press-export-pdf/3.0.3
Usage:
$ press-export-pdf <command> [options]
[...] I'm not 100% sure but it seems like to be related to the Yarn Registry 🤔 I close this here for now. Sorry for bothering you! |
It's great. Have a good trip.🥳 |
FYI, I reported it in the yarn repo: yarnpkg/yarn#5480 |
Okay, that's the reason why I don't like Yarn. have you ever tried to use pnpm🎃 I think it's better than Yarn with my opinion 😂 |
I started to use yarn years ago when npm generated HUGE node_moduels dirs. Never looked for alternatives. AFAIK ist the node_modules tree issue fixed with npm, so I will just use npm now :) |
OK 😸 |
Hi,
I discovered that I can't use the
press-export-pdf
command:node_modules/vitepress-export-pdf/bin$ ./press-export-pdf.mjs env: node\r: No such file or directory
While this works:
The
\r
irritated me and I converted the file from CRLF (Windows) line ends to LF (Unix) line ends and voila:Why are there windows line ends in the file? Shouldn't cause this errors on all unix environments? 🤔
I'm on MacOS with yarn and Node 22.4.1.
The text was updated successfully, but these errors were encountered: