brackets-ftp-sync icon indicating copy to clipboard operation
brackets-ftp-sync copied to clipboard

Error: Cannot find module 'ssh2'

Open webbpinner opened this issue 10 years ago • 5 comments

I just started using Brackets this week (on OS X, Yosemite) and was very excited to see this extension. Problem I'm having is connecting to a remote server using SFTP. As the title indicates, Brackets is unable to find/load the ssh2 module.

I dug a little into the code but as I don't have much experience with node.js or developing Brackets extensions I'm not of much help.

The only thought I had was that perhaps there's a mechanism within the Brackets extension framework to download/install dependancies when required by an extension. If it is this easy maybe ssh2 just needs to be specified as a dependency in the package.js file (totally a guess).

Cheers, -W

webbpinner avatar Jan 02 '15 11:01 webbpinner

I have the same issue as well on Windows 8.1 using Brackets Release 1.1 build 1.1.0-15558

zing321 avatar Jan 03 '15 06:01 zing321

Having the same problem on Windows 7 using Release 1.1 versión 1.1.0-15558. I can't find the module's icon once installed.

endlesslearning avatar Jan 03 '15 12:01 endlesslearning

Same issue here ("cannot find module 'ssh2'"). Running OS X Yosemite 10.10.1 with Brackets 1.1 build 1.1.0-15558.

scottyinzeo avatar Jan 03 '15 17:01 scottyinzeo

Well I think i fixed it. I think the problem is that the current build doesn't include all the dependencies. My solution was to download the 2.0.1 and 2.0.0 zip files. Decompress both zip files. Copy the ssh2 folder from the 2.0.0/node/node_modules folder to the same place in the 2.0.1 folder. Re-zip the 2.0.1 folder (filename: ftp-sync_2.0.1.zip). UNINSTALL THE ORIGINAL EXTENSION. Install the modified zip file into Brackets manually. Appears to work. My apologizes for not knowing how to update the github files correctly.

-W

webbpinner avatar Jan 09 '15 13:01 webbpinner

Thanks for the info and sorry about the 2.0.1 build - yes, it was missing the ssh2 module and it's dependencies. I have pulled the latest ssh2 code, created a 2.0.2 build and added it to the Brackets extension registry. All changes will be in the github repo soon.

timburgess avatar Jan 09 '15 23:01 timburgess