Initialize node js tern base dir.