Showing posts with label react. Show all posts
Showing posts with label react. Show all posts

Saturday, 15 January 2022

React Preparations - Materials

 0. Get started with React

https://www.taniarascia.com/getting-started-with-react/

1. React and Redux

https://medium.com/codingthesmartway-com-blog/learn-redux-introduction-to-state-management-with-react-b87bc570b12a

2. Thinking in React

https://reactjs.org/docs/thinking-in-react.html

3. React Free course

https://www.udemy.com/course/react-basic-in-just-1-hour/?LSNPUBID=JVFxdTr9V80&ranEAID=JVFxdTr9V80&ranMID=39197&ranSiteID=JVFxdTr9V80-gMEc02YOV2FtjWGPT6pUbw&utm_medium=udemyads&utm_source=aff-campaign

React basic in just 1 hour [2021] - Leo Trieu - udemy




Tuesday, 3 August 2021

React - npm : self signed certificate in certificate chain issue

 When I try to install react-router using "npm install react-router-dom"

I got below mentioned error message

PS C:\PracticeApps\React\my-react-app> npm install react-router-dom

npm WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning SELF_SIGNED_CERT_IN_CHAIN: request to https://registry.npmjs.org/react-router-dom failed, reason: self signed certificate in certificate chain

npm WARN registry Using stale data from https://registry.npmjs.org/ due to a request error during revalidation.

npm ERR! code SELF_SIGNED_CERT_IN_CHAIN

npm ERR! errno SELF_SIGNED_CERT_IN_CHAIN

npm ERR! request to https://registry.npmjs.org/react-router-dom/-/react-router-dom-5.2.0.tgz failed, reason: self signed certificate in certificate chain  


npm ERR! A complete log of this run can be found in:

npm ERR!     C:\Users\KMATADA\AppData\Roaming\npm-cache\_logs\2021-08-03T14_08_06_664Z-debug.log


Solution : Try to run below commands

1.  npm install npm -g --ca=""


2. npm config set strict-ssl false   ( not recommended - ignoring ssl error is bad idea)



Reference Link

https://stackoverflow.com/questions/9626990/receiving-error-error-ssl-error-self-signed-cert-in-chain-while-using-npm