GithubHelp home page GithubHelp logo

Error when npm package readme is utf-8 encoded: "readme_file.rb:42:in `match': invalid byte sequence in US-ASCII (ArgumentError)" about licensed HOT 2 CLOSED

github avatar github commented on July 16, 2024
Error when npm package readme is utf-8 encoded: "readme_file.rb:42:in `match': invalid byte sequence in US-ASCII (ArgumentError)"

from licensed.

Comments (2)

jonabc avatar jonabc commented on July 16, 2024

👋 @cnaslain glad to see things are still moving along.

It looks like the error you posted is from a missing package, e.g. not having run npm install first. Since the issue is about utf-8 encoded content I'm assuming this is the wrong stack trace and you already got past that 👍

There's a long term and a (probable) short term fix for this.

Long term: If you have the time and are feeling up to it, you can fix this in licensee! This was reported in licensee awhile back but it looks like the fix was never followed up on and didn't make it into the gem.

Short term: Try adding ENV LANG C.UTF-8 to your Dockerfile. I think I hit the same issue when I was playing around with licensed + docker, and that was the fix 😄

from licensed.

cnaslain avatar cnaslain commented on July 16, 2024

@jonabc Thanks for the tip! Adding ENV LANG C.UTF-8 to my dockerfile did the job :-)

from licensed.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.