Comments (2)
Deleted nodejs and reinstalled from source,
installed d3 module
then tried installing vega again;
root@vividlogic:~/node# npm install vega -g
npm http GET https://registry.npmjs.org/vega
npm http 304 https://registry.npmjs.org/vega
npm http GET https://registry.npmjs.org/optimist/0.3.7
npm http GET https://registry.npmjs.org/d3/3.1.4
npm http GET https://registry.npmjs.org/canvas/1.0.2
npm http 304 https://registry.npmjs.org/d3/3.1.4
npm http 304 https://registry.npmjs.org/optimist/0.3.7
npm http 304 https://registry.npmjs.org/canvas/1.0.2
npm http GET https://registry.npmjs.org/wordwrap
[email protected] install /usr/local/lib/node_modules/vega/node_modules/canvas
node-gyp rebuild
npm http GET https://registry.npmjs.org/jsdom
./util/has_cairo_freetype.sh: line 4: pkg-config: command not found
gyp: Call to './util/has_cairo_freetype.sh' returned exit status 0. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: gyp
failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:415:16)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:784:12)
gyp ERR! System Linux 2.6.18-028stab101.1
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/vega/node_modules/canvas
gyp ERR! node -v v0.10.5
gyp ERR! node-gyp -v v0.9.5
gyp ERR! not ok
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! sh "-c" "node-gyp rebuild"
failed with 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the canvas package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls canvas
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 2.6.18-028stab101.1
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "vega" "-g"
npm ERR! cwd /root/node
npm ERR! node -v v0.10.5
npm ERR! npm -v 1.2.18
npm ERR! code ELIFECYCLE
npm http 304 https://registry.npmjs.org/wordwrap
npm http 304 https://registry.npmjs.org/jsdom
npm http GET https://registry.npmjs.org/htmlparser
npm http GET https://registry.npmjs.org/nwmatcher
npm http GET https://registry.npmjs.org/request
npm http GET https://registry.npmjs.org/cssom
npm http GET https://registry.npmjs.org/cssstyle
npm http GET https://registry.npmjs.org/contextify
npm http 304 https://registry.npmjs.org/cssom
npm WARN package.json [email protected] No README.md file found!
npm http 304 https://registry.npmjs.org/htmlparser
npm http 304 https://registry.npmjs.org/nwmatcher
npm WARN package.json [email protected] No README.md file found!
npm http 304 https://registry.npmjs.org/request
npm http 304 https://registry.npmjs.org/cssstyle
npm http 304 https://registry.npmjs.org/contextify
npm http GET https://registry.npmjs.org/bindings
npm http GET https://registry.npmjs.org/form-data
npm http GET https://registry.npmjs.org/mime
npm http GET https://registry.npmjs.org/hawk
npm http GET https://registry.npmjs.org/node-uuid
npm http GET https://registry.npmjs.org/cookie-jar
npm http GET https://registry.npmjs.org/aws-sign
npm http GET https://registry.npmjs.org/oauth-sign
npm http GET https://registry.npmjs.org/http-signature
npm http GET https://registry.npmjs.org/forever-agent
npm http GET https://registry.npmjs.org/tunnel-agent
npm http GET https://registry.npmjs.org/json-stringify-safe
npm http GET https://registry.npmjs.org/qs
npm http 304 https://registry.npmjs.org/bindings
[email protected] install /usr/local/lib/node_modules/vega/node_modules/d3/node_modules/jsdom/node_modules/contextify
node-gyp rebuild
npm http 304 https://registry.npmjs.org/cookie-jar
npm http 304 https://registry.npmjs.org/mime
npm http 304 https://registry.npmjs.org/node-uuid
npm http 304 https://registry.npmjs.org/form-data
npm http 304 https://registry.npmjs.org/hawk
npm http 304 https://registry.npmjs.org/oauth-sign
npm http 304 https://registry.npmjs.org/aws-sign
npm http 304 https://registry.npmjs.org/http-signature
npm http 304 https://registry.npmjs.org/forever-agent
npm WARN package.json [email protected] No README.md file found!
npm http 304 https://registry.npmjs.org/tunnel-agent
npm http 304 https://registry.npmjs.org/json-stringify-safe
npm http 304 https://registry.npmjs.org/qs
npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.5","npm":"1.2.18"})
npm http GET https://registry.npmjs.org/combined-stream
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/assert-plus/0.1.2
npm http GET https://registry.npmjs.org/asn1/0.1.11
npm http GET https://registry.npmjs.org/ctype/0.5.2
npm http GET https://registry.npmjs.org/hoek
npm http GET https://registry.npmjs.org/boom
npm http GET https://registry.npmjs.org/cryptiles
npm http GET https://registry.npmjs.org/sntp
make: Entering directory /usr/local/lib/node_modules/vega/node_modules/d3/node_modules/jsdom/node_modules/contextify/build' CXX(target) Release/obj.target/contextify/src/contextify.o SOLINK_MODULE(target) Release/obj.target/contextify.node npm http 304 https://registry.npmjs.org/combined-stream SOLINK_MODULE(target) Release/obj.target/contextify.node: Finished COPY Release/contextify.node make: Leaving directory
/usr/local/lib/node_modules/vega/node_modules/d3/node_modules/jsdom/node_modules/contextify/build'
npm http 304 https://registry.npmjs.org/async
npm http 304 https://registry.npmjs.org/assert-plus/0.1.2
npm http 304 https://registry.npmjs.org/ctype/0.5.2
npm http GET https://registry.npmjs.org/delayed-stream/0.0.5
npm http 304 https://registry.npmjs.org/hoek
npm http 304 https://registry.npmjs.org/asn1/0.1.11
npm http 304 https://registry.npmjs.org/boom
npm http 304 https://registry.npmjs.org/cryptiles
npm http 304 https://registry.npmjs.org/sntp
npm http 304 https://registry.npmjs.org/delayed-stream/0.0.5
npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.5","npm":"1.2.18"})
npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.5","npm":"1.2.18"})
npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.5","npm":"1.2.18"})
npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.5","npm":"1.2.18"})
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /root/node/npm-debug.log
npm ERR! not ok code 0
from vega.
OK so looks like there are two dependancies I was missing
apt-get install libcairo2-dev
and
npm install d3 -g
Up and running - hooray!
from vega.
Related Issues (20)
- textPath
- "Extent" property for Regression does not modify the regression extent and nullifies the regression. HOT 3
- Proposal for new `sumnull` aggregation HOT 4
- Broken 'View in Online Vega Editor' link in an example HOT 1
- An issue with a data source in Vega example HOT 3
- CanvasRenderer and SVGRenderer do not give the same output when given a scaleFactor HOT 6
- TypeError when rendering a vega scene using SVGRenderer HOT 1
- Vega lite - Cannot use datum expr in scale padding
- interactively sorted data table is no longer sorted in line chart HOT 1
- Add a function for Base64 encoding to the expressions
- Should aggregate_params be aggregateParams HOT 5
- [Accessibility] Device Dependent handlers are used. Tooltips are not accessible with keyboard. HOT 1
- [Accessibility] Tooltip content is not accessible to screen readers. HOT 1
- [Accessibility] The content in the tooltip is not hoverable. HOT 4
- Numeric Instability During Linear Regression With Large x-values
- [Accessibility] Overlapping Legends when text spacing is applied as per WCAG 2.1 Text Spacing(Level AA) guidelines HOT 2
- Mobile webview taps on the chart doesn't display tooltips properly since vega version 5.26.0 HOT 2
- vega-lite-api & nodejs-polars HOT 6
- In Editor, should be possible to see data and signals from inner group elements. HOT 2
- Align legends to the left of the charts
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 vega.