README is deformed in npmjs but appears in github

爷,独闯天下 提交于 2021-02-05 11:44:33

问题


The readme file is represented as a binary file in npmjs.com but not in github.com

screeshot:

Url to the package

  • github: https://github.com/scicave/rakam
  • npmjs: https://npmjs.com/package/rakam

回答1:


Your README.md is encoded as little-endian UTF-16, with mixed line endings:

$ file README.md 
README.md: Little-endian UTF-16 Unicode text, with very long lines, with CRLF, CR line terminators

UTF-16 is fairly uncommon these days; UTF-8 has largely replaced it. Consider re-encoding your file as UTF-8, normalizing your line endings, and re-publishing.



来源:https://stackoverflow.com/questions/63733460/readme-is-deformed-in-npmjs-but-appears-in-github

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!