Installation of certificate in npm: הבדלים בין גרסאות בדף
קפיצה לניווט
קפיצה לחיפוש
(הגדרת LTR לרשימות ממוספרות) |
|||
שורה 13: | שורה 13: | ||
=== Second option === | === 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 [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. | ||
− | + | 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''' | ||
− | + | To uninstall the certificate run this command. | |
+ | npm config -g delete cafile | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
=== Third option === | === Third option === |
גרסה מ־06:34, 23 במרץ 2020
לעברית לחצו כאן
To switch from edit view to read view
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