הבדלים בין גרסאות בדף "Installation of certificate in npm"

מתוך ויקי נטפרי
קפיצה אל: ניווט, חיפוש
(הגדרת LTR לרשימות ממוספרות)
 
שורה 13: שורה 13:
 
=== Second option ===
 
=== Second option ===
  
Download the certificate of your Provider of NetFree from here.
+
In windows install the security certificate software, and then run this command:
http://netfree.link/netfree-ca.crt
+
npm config -g set cafile %programdata%\netfree\ca\netfree-ca-bundle-curl.crt
Save it on your computer where ypu want. (Ex: '''''C:\netfree-ca.crt''''' )
 
  
 +
In other operating  systems download the file [http://wiki.netfree.link/images/a/ac/Curl-ca-bundle.zip from here], extract its contents, save in a fixed location, and Write the command in a way that you point to the file.
  
Then run the next command. Of course you should put the correct folder of the certificate in this place '''netfree-ca.crt'''
+
In linux, if you installed the certificate according to the instructions [[Installation of certificate in Ubuntu operating system|here]] write this command:
 +
npm config -g set cafile '''/usr/lib/ssl/certs/ca-certificates.crt'''
  
  
  npm config set cafile "'''netfree-ca.crt'''"
+
  To uninstall the certificate run this command.
  
 +
npm config -g delete cafile
  
It should work now.
 
 
 
To uninstall the certificate run this command. .
 
 
npm config delete cafile '''''
 
 
Good luck.
 
  
 
=== Third option ===
 
=== Third option ===

גרסה אחרונה מ־06:34, 23 במרץ 2020

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


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

In windows install the security certificate software, and then run this command:

npm config -g set cafile %programdata%\netfree\ca\netfree-ca-bundle-curl.crt

In other operating systems download the file from here, extract its contents, save in a fixed location, and Write the command in a way that you point to the file.

In linux, if you installed the certificate according to the instructions here write this command:

npm config -g set cafile /usr/lib/ssl/certs/ca-certificates.crt


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


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