Reputation: 365
I started to run into this problem yesterday. Deploys fail when I run:
npm install kudusync -g
with the following error:
Error: SSL Error: CERT_UNTRUSTED
From some searches it appears that one of Kudu's dependencies is self-signed or unsigned. It seems like I can disable SSL checks for Node -- but that seems like a dangerous option and not recommended. Is anyone aware of any other workarounds?
The output in azure is as follows:
remote: npm http GET https://registry.npmjs.org/kudusync[K remote: ......[K
remote: npm http GET https://registry.npmjs.org/kudusync[K remote: .......................................................[K
remote: npm http GET https://registry.npmjs.org/kudusync[K remote: npm ERR! Error: SSL Error: CERT_UNTRUSTED[K
remote: npm ERR! at ClientRequest. (d:\Program Files (x86)\nodejs\node_modules\npm\node_modules\request\main.js:440:26)[K remote: An error has occurred during web site deployment.[K
Upvotes: 2
Views: 1292
Reputation: 43203
The break most likely refers to this change npm made.
Do you have a custom deployment script, or the standard script? With custom, your options are:
npm config set strict-ssl false
before running npmKUDU_SYNC_COMMAND
, rename that to KUDU_SYNC_CMD
Upvotes: 3