Created
January 10, 2012 02:27
-
-
Save varokas/1586471 to your computer and use it in GitHub Desktop.
Installing Node.js to work with coffeescript
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
--> OS X | |
brew node | |
==> Caveats | |
Please add /usr/local/lib/node to your NODE_PATH environment variable to have node libraries picked | |
curl http://npmjs.org/install.sh | sh | |
npm install -g coffee-script | |
then run | |
coffee | |
--> Ubuntu | |
apt-get install nodejs | |
sudo apt-get install build-essential | |
sudo apt-get install libssl-dev | |
sudo apt-get install curl git | |
cd ~ | |
git clone git://github.com/creationix/nvm.git | |
. ~/nvm/nvm.sh | |
nvm install v0.6.7 # Current version as of this writing | |
nvm use v0.6.7 | |
curl http://npmjs.org/install.sh | sh # Optional to install npm but recommended | |
if [ -f ~/nvm/nvm.sh ]; then | |
. ~/nvm/nvm.sh | |
fi | |
export PATH=~/nvm/v0.6.7/bin:$PATH | |
--> Jasmine | |
npm install -g jasmine-node | |
--> Mocha | |
npm install -g mocha | |
get coffee-script to work with mocha, coffee-script needs to be installed in the mocha project, | |
$> cd global_node/node_modules/mocha | |
$> npm -d install coffee-script | |
npm -d install should |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment