Created
August 4, 2015 16:17
-
-
Save imlucas/b570d4f42d3981476dca to your computer and use it in GitHub Desktop.
Adhoc node.js installs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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