Error when using gulp-sftp.
[08:33:39] Authenticating with password.
buffer.js:262
throw new TypeError(kFromErrorMsg);
^
TypeError: First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.
Found solution here but had to remove the package-lock.json file before running npm install on the last step.
From site:
mahathun commented on this issue 5 months ago. @erikandershed do you get any errors, did you try the method i told you. 1) remove the node folder "rm -rf node_modules" 2) reinstall all the packages npm install 3) goto the gulp-sftp folder inside the node_modules cd node_modules/gulp-sftp 4) open it in a text editor("subl .") and change the ssh2 package version to "~0.5.5"