-
Notifications
You must be signed in to change notification settings - Fork 3
Node.js Environment Setup
hunt edited this page Mar 15, 2013
·
1 revision
- Install latest version of Xcode from Appstore (this process require Apple ID) file's size about 1.6GB
- Enable Command Line tools by goto menu "Xcode > Preference" on "Downloads" tab. Hit "Install" button at Command Line Tools. (about 100MB) After this process you can access GCC compiler from terminal.
- Now you got latest GCC and all compiler tools that you need. Now time to install package manager for Mac. We using Homebrew (instead of macport) or use this code on your sheel.
ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)" - Install git by
brew install git - Install Node version manager. We using NVM install by this command
curl https://raw.github.com/creationix/nvm/master/install.sh | shTo activate NVM on every terminal session you should add this line. ~/.nvm/nvm.shto~/.profile - Now you got version control of node. If you want to use node 0.6.14 just type
nvm install 0.6.14. List version of node bynvm lsYou may need to set default version of node bynvm alias default 0.6for using latest version of node 0.6.x To confirm you got node.node -vfor checking your current node version. - Now you got Node! Now time for node package manager (NPM). Install by this command
curl https://npmjs.org/install.sh | shto download npm script and install Now everything you get everything you need to explore the world of Javascript by Node!
brew install redis
npm install redis hiredis
brew install mongo
npm install mongoose
-
To disable key press holding (repeat...) from Lion
defaults write -g ApplePressAndHoldEnabled -bool falseand restart your current using app -
To Increase cursor speed in terminal go to System Preferences => Keyboard => Key Repeat Rate && Delay Until Repeat