I am trying to use ssh2-sftp-client
package 5.3.1 version with Angular 9.0.4
but getting so many errors like;
ERROR in ./node_modules/ssh2-sftp-client/lib/http-agents.js
Module not found: Error: Can't resolve 'https' in 'C:\workspace\myProject\node_modules\ssh2-sftp-client\lib'
and
ERROR in ./node_modules/ssh2-sftp-client/lib/agent.js
Module not found: Error: Can't resolve 'fs' in 'C:\workspace\myProject\node_modules\ssh2-sftp-client\lib'
I did npm i ssh2-sftp-client
and imported to class like this;
import SFTPClient from "ssh2-sftp-client";