kohheepeace / mr-pdf

Generate PDF for document website.
https://www.npmjs.com/package/mr-pdf
MIT License
125 stars 41 forks source link

error of `env: node\r: No such file or directory` #27

Closed genshen closed 3 years ago

genshen commented 3 years ago

Open an issue again.
I installed mr-pdf(v1.0.5) for my mac via yarn tool.
When I run mr-pdf, it gives me an error of env: node\r: No such file or directory.
I just open the mr-pdf script and fount it is doc format (with end line \r\n), not unix format.
I have to convert it to unix format via vim: :set fileformat=unix, which could not be an easy problem if user don't know the file format.


node version: v14.15.5

kohheepeace commented 3 years ago

@genshen really thanks for your report. Could you check if it works at v 1.0.6 ?

genshen commented 3 years ago

I reinstalled v1.0.6, but it is still dos format.

image

But source code in GitHub repo(tag v1.0.6) is unix format (which is guaranteed by Git itself). It there anything wrong when you publishing the package?