refactor of nodejs installation