zswang / jdists

A feature rich code block preprocessing tool.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mac 下好像存在换行符的问题

zhangbobell opened this issue · comments

大叔,Legend 用的是 1.3.1 版本,不小心升级到新版后 (按照 package.json 的写法,应该是 v1.3.8)之后,提示有换行符的兼容性问题。

package.json

"dependencies": {
     ...
    "jdists": "^1.0.12"
     ...
  },

部分错误信息如下:

> jdists page/index.html -o page/index.ejs -t ejs

>> env:
>> node\r: No such file or directory
>> 
>> npm
>> 
>> ERR!
>> Darwin 16.5.0
>> npm
>> ERR! argv
>> "/usr/local/bin/node" "/usr/local/bin/npm" "run" "_legend"
>> npm

推测可能是 Windows 下的换行符和 Mac 下的换行符不一致导致的,具体原因还有待进一步查明。

已经将有问题的版本移除,感谢反馈。

$ npm unpublish jdists@1.4.1

试试

npm install jdists@1.4.0

👌 谢大叔!