CentOS6.3ã« node.jsã nvm ã§ã¤ã³ã¹ãã¼ã«
åºæ¬çã« åã® ubuntu 12.04 ã«ã¤ã³ã¹ãã¼ã«ããæ¹æ³ã¨åãã§ãã
coffeescript, typescript ãå
¥ãã¦ã¿ã¾ããã
æé
- nvm ãã¤ã³ã¹ãã¼ã«
- node.js ã nvm ã§ã¤ã³ã¹ãã¼ã«
- coffeescript ãnpm ã§ã¤ã³ã¹ãã¼ã«
- typescript ãnpm ã§ã¤ã³ã¹ãã¼ã«
nvm ã¤ã³ã¹ãã¼ã«
# git clone git://github.com/creationix/nvm.git ~/.nvm # source ~/.nvm/nvm.sh
node.js ã¤ã³ã¹ãã¼ã«
ä»å㯠v0.8.18 ãã¤ã³ã¹ãã¼ã«
# nvm install v0.8.18 # node -v v0.8.18
.bashrc ã«è¿½å
.bashrc ã«ä»¥ä¸ã®2è¡ã追å ã
. ~/.nvm/nvm.sh nvm use v0.8.18
coffeescript ãã¤ã³ã¹ãã¼ã«
# npm install -g coffee-script # coffee -v CoffeeScript version 1.4.0
typescript ãã¤ã³ã¹ãã¼ã«
調åã«ã®ã£ã¦ typescript ãã¤ã³ã¹ãã¼ã«ã ããæ¹ã¯ä¸ç·ã§ãã
# npm install -g typescript # tsc -v Version 0.8.2.0