npm install babel . --ignore node_modules,dist --out-dir dist node dist/a/foo.js cd dist; node a/foo.js