Created
March 1, 2014 01:56
-
-
Save seldo/9283690 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This comment is from "gflandre" on our blog post here: http://blog.npmjs.org/post/78085451721/npms-self-signed-certificate-is-no-more (apologies for being unable to permalink directly to the comment) | |
----- | |
So I figured out a way to make it work on Elastic Beanstalk: | |
Put this in `.ebextensions`: | |
commands: | |
01_enable_rootaccess: | |
command: echo Defaults:root \!requiretty >> /etc/sudoers | |
02_no-cert: | |
command: sudo /opt/elasticbeanstalk/node-install/node-v0.10.10-linux-x64/bin/npm config set ca "" | |
Worked like a charm in my case. |
Sorry, hope you can maybe help. I am still having issues with this... Tried all of the following: https://gist.github.com/Samnsparky/9294533
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
just to be clear, there should be a file in the folder .ebextensions with that content.
eg.
echo 'commands:
01_enable_rootaccess:
command: echo Defaults:root !requiretty >> /etc/sudoers
02_no-cert:
command: sudo /opt/elasticbeanstalk/node-install/node-v0.10.10-linux-x64/bin/npm config set ca ""' > $projectroot.ebextensions\01-FixNPM.config
files in .ebextensions are applied in alphabetical order, so make sure you dont have other ones needing that patch.