Sunday, January 23, 2022

ls in windows

Looking to run ls command in Windows.

doskey can set the alias.
According to https://winaero.com/how-to-set-aliases-for-the-command-prompt-in-windows/, I can set an alias on top of cmd command; however, it's not working on Windows Terminal.

 So, for the Windows Terminal, open the settings and add alias into cmd.





Tuesday, January 11, 2022

create-react-app

>npx create-react-app antd-tutorial
Need to install the following packages:
  create-react-app
Ok to proceed? (y) y

You are running `create-react-app` 4.0.3, which is behind the latest release (5.0.0).

We no longer support global installation of Create React App.

Please remove any global installs with one of the following commands:
- npm uninstall -g create-react-app
- yarn global remove create-react-app

The latest instructions for creating a new app can be found here:
https://create-react-app.dev/docs/getting-started/

How do we resolve this issue?

>npx clear-npx-cache