Installation of certificate in npm

מתוך ויקי נטפרי
קפיצה לניווט קפיצה לחיפוש

לעברית לחצו כאן


To switch from edit view to read view

To search in the Wiki


Home page > Security certificate > Installation of certificate in npm ‎‎


Preferred option

Installation of certificate in all Node products

Second option

Download the certificate of your Provider of NetFree from here. http://netfree.link/netfree-ca.crt Save it on your computer where ypu want. (Ex: C:\netfree-ca.crt )


Then run the next command. Of course you should put the correct folder of the certificate in this place netfree-ca.crt


npm config set cafile "netfree-ca.crt"


It should work now.


To uninstall the certificate run this command. .
npm config delete cafile 

Good luck.

Third option

You can disable the need for Security certificate, by setting npm to use with the http protocol.

Run the following command:

npm config set registry http://registry.npmjs.org 


External links

Home page of npm