Nodejs SFTP client to download file from remote Babelrc is use for this nodejs code. Please have a .babelrc created with the following content. { "presets": ["es2015"] } To run it yarn start