This is the course website for IS445(AOG) in Fall 2020
There are a few ways to do this. Probably the easiest is to download the correct version from the Node.js page.
If you go this route, make sure you follow the final install instructions and have the npm
executable in your PATH
. On my Mac the prompt looks like:
If you try any of the npm
commands and it gives you an error about not knowing what npm
is it is likely because it doesn’t know where it is (given the example posted in the image above you could expliclity call npm
with: /usr/local/bin/npm
).
Notes for Windows install:
If the “default” way doesn’t work for any reason you can try with conda in your terminal/Anaconda prompt:
conda activate DataViz
conda install nodejs
If you go this route, make sure you activate your DataViz environment before using any npm
calls.
You’ll run these commands in a terminal (Mac) or anaconda prompt (Windows) so make sure you open them up.
NOTE: to install things globally (-g) you might have to use sudo
in front of the npm
commands.
npm
to install Idyll (you might need root privileges to do so)
npm install -g idyll
idyll create
my-idyll-post
)npm install --save vega-lite react react-dom vega
npm install --save idyll-vega-lite
my-idyll-post
directorydata/
sub-folder in the my-idyll-post
directoryidyll
in your my-idyll-post
directory and make sure it looks like whats in the test video belowidyll --compileLibs=true
instead of just idyll
. You might get a “BABEL” warning that you can ignore for now.