问题
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