===== Настройка сборки ===== На примере Teamcity # Частный репозиторий npm config set registry="https://nexus-ci.example.com/repository/project-npm/" npm config set //nexus-ci.example.com/repository/project-npm/:username=%nexus_username% npm config set //nexus-ci.example.com/repository/project-npm/:_password=%nexus_password% # Игнор кривого SSL-сертификата npm config set strict-ssl false # Скачать зависимости npm install --verbose https://docs.npmjs.com/cli/v11/configuring-npm/npmrc#auth-related-configuration ===== Ошибки ===== ==== Self-signed certificate in certificate chain ==== Сборка надолго зависает и заканчивается ошибкой, зависимости не скачиваются, в логах ругань на кривой SSL-сертификат. Решение (при отсутствии более правильного) npm config set strict-ssl false https://stackoverflow.com/questions/9626990/receiving-error-error-ssl-error-self-signed-cert-in-chain-while-using-npm