The recommended way to install dependencies on the Torus Node project is using Nix and direnv.
You can install Nix with the Determinate Nix Installer:
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
You can then install and use direnv to automatically load the environment:
-
Install direnv:
nix profile install nixpkgs#direnv
-
Add to your
~/.zshrc
and reload your shell if you're using zsh:eval "$(direnv hook zsh)"
-
For bash, add to your
~/.bashrc
:eval "$(direnv hook bash)"
-
Run
direnv allow
inside the project directory to enable it.
You can also manually load the environment:
nix develop