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
The solution is to either:
1) upgrade your version of npm
npm install npm -g
or
2) tell your current version of npm to use known registrars
npm config set ca ""
However, neither of these solution work on Elastic Beanstalk. npm
is linked to the version of node installed (v0.10.10), and it is not possible to tell the current npm version to use known registrars.
I run a 64-bit Amazon Linux instance for NodeJS
Adding this command in .ebextensions
does not help:
container_commands:
01_npm-fix:
command: /opt/elasticbeanstalk/node-install/node-v0.10.10-linux-x64/bin/npm config set ca ""
Anyone as figured out a solution for this?