I\'m well aware of the root of this issue, as npm wrote on their blog: http://blog.npmjs.org/post/78085451721/npms-self-signed-certificate-is-no-more
npm
Th
So I figured out a way to make it work:
Put this in .ebextensions:
.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.