Giter Club home page Giter Club logo

Comments (2)

dzielin avatar dzielin commented on August 22, 2024

Not sure what the policy is on double-posts... but this update warrants a separate comment.

I was able to get the basic svg functionality working like before. I created a temp directory. I installed the latest version of using 'npm install -g canvas.' From there, I cloned the repo into the temp directory. I updated the package.json to use the latest version for all dependencies.

Once that was done, I ran npm install to install the dependencies. This got stuck on an infinite loop with a message like:

gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/temp/gh-badges/node_modules/gh-badges/node_modules/canvas/.node-gyp/5.8.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/root/temp/gh-badges/node_modules/gh-badges/node_modules/canvas/.node-gyp"

So, I recursively set the permissions of the node_modules directory to 777. I re-ran npm install and the dependencies were able to finish installing without error. From there, I ran 'npm install -g .' to install gh-badges globally, then removed the temp directory. Worked like a charm!

I haven't done any thorough testing. The mocha tests fail miserably, but I'm able to create my svg badges again, so I'm not too worried about it. Still, this compatibility issue seems like something important to look into.

from gh-badges.

espadrine avatar espadrine commented on August 22, 2024

Thanks for describing your issues. I am glad you found a solution. I am definitely interested in improving the ease of installation by avoiding the use of node-canvas, which causes both your NAN issue and your circular dependency issue.

As a side-note, the gh-badges project has switched location to https://github.com/badges/shields/.

from gh-badges.

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.