Comments (2)
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.
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)
- Build a web service HOT 7
- Picking the font HOT 10
- Work with existing services HOT 27
- Tracking Gemnasium’s adoption of these badges HOT 7
- Add build script that generates SVG badges based on template HOT 5
- Making PNG download faster HOT 6
- Specify the branch for service images. HOT 7
- Add no-cache headers so that github will not cache the svg in their CND
- Mention Github Badge Gem HOT 1
- Not rendering in Github HOT 8
- Following color, rounding and font "standard" from other providers. HOT 2
- redirect / to http://shields.io/ HOT 35
- Tracking Travis’ adoption of these badges
- Add support for Version Badge HOT 9
- Bad image link in README.md HOT 2
- Tracking David DM’s adoption of these badges
- Running from Docker HOT 3
- Tracking browser bugs HOT 9
- Align color scheme names with Buckler’s HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gh-badges.