Bower install CERT_UNTRUSTED Error

I got CERT_UNTRUSTED when I tried to run the bower install command to install the components.

For example, I received this error when I ran the following:

bower install bootstrap-sass-official --save 

The output was:

 bower error Request to https://bower.herokuapp.com/packages/bootstrap-sass-official failed: CERT_UNTRUSTED 

Note. This is not a package error. This happens when you try to install a package, not just using bootstrap-sass-official.

+5
source share
2 answers

you can try installing this in .bowerrc:

 { "directory": "bower_components", "registry": "http://bower.herokuapp.com", "strict-ssl": false } 
+7
source

I found a quick solution to this problem. I assume that the problem is due to my company's SSL settings.

I changed the registry search as follows (on my Windows laptop) and it fixed the problem.

 set registry.search=http://bower.herokuapp.com 

This should work on unix systems too, where you need to create an env variable with the above key and value.

You can also change the registry setting in the .bowerrc file.

You can follow a quick and dirty fix. Do not do this as a permanent solution.

+1
source

Source: https://habr.com/ru/post/1204704/


All Articles