Error installing react-devtools

at the beginning of contact with reactnative, all kinds of error reports are really tiring.
neither of the simple two lines of commands can run ~

clipboard.png

clipboard.png

Mar.15,2021

the internal part of the project can not be global, which is no doubt that the environment variables are not configured.
execute npm bin-g first, assuming that c:\ path\ bin is displayed, then add c:\ path\ bin to the Path of the environment variable.
look under this folder for react-devtools .

< hr >

about environment variables Path :
if you enter a command on the command line, for example, you enter node , then your terminal (should be cmd? ) you have to find out where the program is. It's obviously impossible to find all the files on your computer, right? otherwise it will be very slow. So only look for files in the specified path to see if there is node . This is the function of the environment variable Path . The terminal will go to Path to find the command you entered.
how to configure your search, such as win10 configure environment variables

Menu