I just tried this with no problem using the versions listed above. You can add this if your having troubles with SSL,
export NODE_TLS_REJECT_UNAUTHORIZED=0
the error in your .txt file looks like maybe ngrok was having problems at the time you installed it, so you might also want to just try again.