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

מתוך ויקי נטפרי
קפיצה לניווט קפיצה לחיפוש
מ (fix: use {{he}} for link to hebrew page instead of {{en}} (דרך WP:JWB))
 
(6 גרסאות ביניים של 2 משתמשים אינן מוצגות)
שורה 1: שורה 1:
{{עמוד בעברית|התקנת תעודה ב-npm}}
+
{{he|התקנת תעודה ב-npm}}  
 
 
<div lang="en" dir="ltr">
 
 
 
{{קישור אנגלית לתצוגת קריאה}}
 
  
 
{{Navigation|Security certificate}}
 
{{Navigation|Security certificate}}
שורה 9: שורה 5:
 
=== Preferred option ===
 
=== Preferred option ===
  
[[Installation of certificate in all Node products]]
+
Following the instructions [[Installation of certificate in all Node products]] will solve the problem effectively.
  
 
=== 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 Linux 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.
 
  
 +
=== Third option ===
  
To uninstall the certificate run this command. .
+
You can disable the need for Security certificate for package installation , by setting npm to use with the http protocol on the site which is the package source.
  
npm config delete cafile '''''
+
Run the following command:
  
Good luck.
+
npm config set registry http://registry.npmjs.org '''''
  
=== Third option ===
+
===Option to cancel security check===
 
+
You can cancel the security check when communicating by running this command:
You can disable the need for Security certificate, by setting npm to use with the http protocol.
 
  
Run the following command:
+
npm config -g set strict-ssl false
  
npm config set registry http://registry.npmjs.org '''''
+
And to return the test you can run:
  
 +
npm config -g delete strict-ssl false
  
 
==External links==
 
==External links==
 
[https://www.npmjs.com/ Home page of npm]
 
[https://www.npmjs.com/ Home page of npm]

גרסה אחרונה מ־04:10, 17 באוגוסט 2023

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

To switch from edit view to read view

To search in the Wiki


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


Preferred option

Following the instructions Installation of certificate in all Node products will solve the problem effectively.

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 for package installation , by setting npm to use with the http protocol on the site which is the package source.

Run the following command:

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

Option to cancel security check

You can cancel the security check when communicating by running this command:

npm config -g set strict-ssl false

And to return the test you can run:

npm config -g delete strict-ssl false

External links

Home page of npm