Trying to follow Michael Hartl’s tutorial but…

I'm following the tutorial here step by step. However when I get to the command to install Heroku in AWS Cloud9, source <(curl -sL, I get the following error: npm http GET npm http GET npm http GET npm ERR! Error: UNABLE_TO_GET_ISSUER_CERT_LOCALLY npm ERR! at SecurePair. (tls.js:1430:32)
npm ERR! at SecurePair.emit (events.js:92:17)
npm ERR! at SecurePair.maybeInitFinished (tls.js:1029:10)
npm ERR! at [as _read] (tls.js:521:13)
npm ERR! at (_stream_readable.js:341:10)
npm ERR! at EncryptedStream.write [as _write] (tls.js:418:25)
npm ERR! at doWrite (_stream_writable.js:226:10)
npm ERR! at writeOrBuffer (_stream_writable.js:216:5)
npm ERR! at EncryptedStream.Writable.write (_stream_writable.js:183:11)
npm ERR! at write (_stream_readable.js:602:24)
npm ERR! If you need help, you may report this log at:
npm ERR!
npm ERR! or email it to:
npm ERR!

npm ERR! System Linux 4.9.91-40.57.amzn1.x86_64
npm ERR! command "node" "/usr/bin/npm" "install" "n" "-g"
npm ERR! cwd /home/ec2-user/environment/hello_app
npm ERR! node -v v0.10.48
npm ERR! npm -v 1.3.6
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/ec2-user/environment/hello_app/npm-debug.log
npm ERR! not ok code 0
sudo: n: command not found
bash: /usr/local/bin/npm: No such file or directory

I've tried setting the download/install registry to instead of HTTPS, but it still doesn't work. Has anyone else come across this? Is Heroku still even compatible with AWS cloud9? I've tried a bunch of different "fixes" recommended on SO, but nothing seems to work so far. As I can see this is used later on in his tutorials also, so it doesn't seem like I can just skip around it.

2 thoughts on “Trying to follow Michael Hartl’s tutorial but…”

  1. I was actually able to finally get it installed using:

    $ wget -O- | sh

    However now that I got it working and trying to push my master up to my Heroku account it states it doesn’t recognize the app/package. So more troubleshooting to do. I think I’ve spent more time at this point troubleshooting this part of the tutorial than learning RoR. I think some of the code in the tutorial may be outdated.


Leave a Comment