The command line cannot be called directly after yarn global installation

< H1 > the command line cannot be called directly after global installation of yarn < / H1 > < H2 > Environment < / H2 >
  • Windows : Windows 10 LTSC
  • nodejs : v10.15.1
  • npm : 6.4.1
  • yarn : 1.13.0
  • git : 2.18.0.windows
< H2 > scene < / H2 >

when we use npm to globally install live-server , we can directly type live-server to start the http server.

   

Jun.27,2022
The global installation directory of
npm has been added to the environment variable path .
yarn has not been added to the environment variable path . To add it yourself, yarn global bin View the global installation directory and add it manually

Menu