Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Cannot find module 'ssh2' #48

Open
webbpinner opened this issue Jan 2, 2015 · 5 comments
Open

Error: Cannot find module 'ssh2' #48

webbpinner opened this issue Jan 2, 2015 · 5 comments

Comments

@webbpinner
Copy link

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

@zing321
Copy link

zing321 commented Jan 3, 2015

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

@endlesslearning
Copy link

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.

@scottyinzeo
Copy link

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

@webbpinner
Copy link
Author

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

@timburgess
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants