Step 9/19 Run npm install -g bower 报错
npm http GET https://registry.npmjs.org/bower
npm http GET https://registry.npmjs.org/bower
npm http GET https://registry.npmjs.org/bower
npm ERR! Error: CERT_UNTRUSTED
npm ERR! at SecurePair.
npm ERR! System Linux 4.15.0-30-generic npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "bower" npm ERR! cwd / npm ERR! node -v v0.10.25 npm ERR! npm -v 1.3.10 npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /npm-debug.log npm ERR! not ok code 0
环境没装全,装下nodejs和bower
You can add RUN npm set strict-ssl false to the Dockerfile before Run npm install -g bower. I fixed this error with this change.