Skip to content

Instantly share code, notes, and snippets.

@imlucas
Created August 4, 2015 16:17
Show Gist options
  • Save imlucas/b570d4f42d3981476dca to your computer and use it in GitHub Desktop.
Save imlucas/b570d4f42d3981476dca to your computer and use it in GitHub Desktop.
Adhoc node.js installs
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.25.4/install.sh | bash;
source ~/.profile;
nvm use 0.12.7;
npm install -g node-gyp;
SET NODIST_DEST="%userprofile%\Documents\"
SET NODIST_PREFIX="%userprofile%\Documents\nodist"
CALL git clone git://github.com/marcelklehr/nodist.git "%NODIST_DEST%"
SET PATH="%NODIST_DEST%\nodist\bin;%PATH%"
SET NODE_PATH="%NODIST_DEST%\nodist\bin\node_modules;%NODE_PATH%"
SET NODIST_X64=0
CALL nodist selfupdate
CALL npm config set prefix "%NODIST_PREFIX%\bin"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment