Skip to content

Instantly share code, notes, and snippets.

@gabrielhamel
Created September 18, 2025 19:58
Show Gist options
  • Select an option

  • Save gabrielhamel/3d0473b087c5276759c62eba5ce10bc3 to your computer and use it in GitHub Desktop.

Select an option

Save gabrielhamel/3d0473b087c5276759c62eba5ce10bc3 to your computer and use it in GitHub Desktop.
direnv: Install node local version and load it in the env
set -e
export VOLTA_HOME="$PWD/.volta"
export VOLTA_FEATURE_PNPM=1
PATH_add "$VOLTA_HOME/bin"
if ! [ -f "$VOLTA_HOME/bin/volta" ]; then
curl https://get.volta.sh/ | bash
fi
layout node
{
// ...
"packageManager": "pnpm@10.16.1",
"volta": {
"node": "24.8.0",
"pnpm": "10.16.1"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment