How to download file over FTP in NodeJS?
问题 I want to download file using absolute FTP URL, like ftp://host:port/dir/file.extension I've tried node-libcurl, wget, wget-improved, request . All failed saying that the protocol must be either HTTP or HTTPS. There are FTP clients available for Node (available on npmjs). But, as per their documentation, they require creating a connection to FTP Server, change directory and then download it. Is there any simple solution? 回答1: I will outline a simple approach here (and no complete solution