So, if you need to support both public https npm registries as well as your own, you could use curl's Mozilla based CA bundle and append your CA cert to the cacert.pem file: curl -o ~/. ![]() npm gets its configuration values from the following sources, sorted by priority: Putting -foo bar on the command line sets the foo configuration parameter to 'bar'. Unfortunately npm's CA bundle is not editable as it's provided in the source code (thanks tomekwi) but nitzel has provided a generic Node.js method to append a certificate via the NODE_EXTRA_CA_CERTS environment variable. A - argument tells the cli parser to stop reading flags. ![]() A -flag parameter that is at the end of the command will be given the value of true. Se stai usando npm5.4.x o npm5.5.x, ci sono dei problemi noti con token, sei pregato di aggiornare alla 6.x o tornare alla npm5.3.0. RHEL Note: If you happen to be using a RHEL based distro and the RHEL packaged nodejs/npm you can use the standard update-ca-trust method as RedHat points their packages at the system CA's. ![]() SSL e certificati Usando Verdaccio sotto SSL senza un certificato valido, definendo strict-ssl nel tuo file di configurazione necessario altrimenti otterrai gli errori Errore SSL: SELFSIGNEDCERTINCHAIN.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |