Hsüan's Blog

2015-08-24

Install nodejs or iojs via nvm

update 2018-05-16: 已經是 async/await 時代了,建議都安裝 node 就好 iojs 已經是過去式。

用 nvm install node

install

nodejs

nvm install node

iojs

nvm install iojs

switch

nvm ls

to nodejs

nvm use node

to iojs

nvm use iojs

keep default version after system reboot

# add following to ~/.bash_profile
nvm use node

© 2019 ~ 2024 Hsüan, Powered by Gatsby, Theme Material UI