create-react-app react-antd-demo
cd react-antd-demo
npm run start
If you want to use antd, install antd
npm install antd
error:
npm ERR! Error: EPERM: operation not permitted, unlink ‘e:\Users\zoe\Desktop\ReactStudy\antd-hooks-demo
\node_modules.staging\antd-bc74d47f\dist\antd.js’
npm ERR! [OperationalError: EPERM: operation not permitted, unlink ‘e:\Users\zoe\Desktop\ReactStudy\an
td-hooks-demo\node_modules.staging\antd-bc74d47f\dist\antd.js’] {
npm ERR! cause: [Error: EPERM: operation not permitted, unlink ‘e:\Users\zoe\Desktop\ReactStudy\antd-
hooks-demo\node_modules.staging\antd-bc74d47f\dist\antd.js’] {
npm ERR! errno: -4048,
npm ERR! code: ‘EPERM’,
The download did not work, so the following was done.
Remove node_modules from the project
Clear npm cache …
There are two ways to clear the cache.
The first is to delete the cache file directly, find the .npmrc file under my username on the C drive and delete it.
The second is to execute: npm cache clean –force, also to achieve the purpose of clearing the cache file.
After cleaning, just reinstall.
npm install
npm install antd