Uncaught Error: Cannot find module ‘jquery’

tl;dr In contrast to a normal nodejs app, where you have access to global modules (e.g. located in /usr/bin/node), electron doesn’t automatically set the NODE_PATH environment variables. You have to set it manually to all the paths containing your desired modules. Update: The answer to the question why require(“ipc”) is working and require(“jquery”) not? is … Read more

Using git with ssh-agent on Windows

posh-git and git for windows 2.7 should include everything you need to setup an ssh-agent. Once you have the module installed you can start the agent using something like: Import-Module ~\Documents\WindowsPowerShell\Modules\posh-git\posh-git Set-Alias ssh-agent “$env:ProgramFiles\git\usr\bin\ssh-agent.exe” Set-Alias ssh-add “$env:ProgramFiles\git\usr\bin\ssh-add.exe” Start-SshAgent -Quiet You then should see the SSH_AUTH_SOCK environmental variable is set: C:\Code\Go\src\bosun.org\cmd\scollector [master]> gci env:SSH_AUTH_SOCK Name Value … Read more

You don’t have write permissions for the /Library/Ruby/Gems/2.3.0 directory. (mac user)

Update: I now have a paid script that will set up a proper Ruby environment for you with a single command! I also updated my guide that explains the various ways you can install Ruby gems on a Mac and why I only recommend using a version manager like chruby and ruby-install. You are correct … Read more

tech