Requirements
Installing and developing VTK.js is quite easy, there are just two dependencies:
Instructions for installing these are located at the bottom of this page. If your computer already has these, congratulations!
To install VTK.js within your project:
sh
$ npm install @kitware/vtk.js --saveIf you're developing for VTK.js, then clone the repository using git:
sh
$ git clone https://github.com/kitware/vtk-js.git
$ cd vtk-js
$ npm installFurther instructions on VTK.js development can be found on the contributing page.
Git
- Windows: Download & install git.
- Mac: Install it with Homebrew, MacPorts or installer.
- Linux (Ubuntu, Debian):
sudo apt-get install git-core - Linux (Fedora, Red Hat, CentOS):
sudo yum install git-core
Node.js
The best way to install Node.js is with nvm.