לעברית לחצו כאן
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
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