Building Tofino
June 8, 2016 ยท View on GitHub
All platforms
Ensure you have the following installed and accessible in your PATH environment variable.
- Node.js >= 6.1.0
- To manage multiple node installations, consider using nvm
- Python 2.7 (
pythonmust be in path)
Windows
- Install Visual Studio 2013
- Use the VS2013 Developer Command Prompt, or otherwise have your environment variables set correctly.
Linux
- Install your platform's build essentials, i.e.
sudo apt-get install build-essential
OSX
Installation instructions here use Homebrew. You don't need nvm, but makes installing and managing node versions simple.
$ brew install node python
Building
Once all dependencies are installed, you should be able to just install the node dependencies via npm:
npm install
At this point you can run a build via:
npm run dev