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
Similar Posts:
- error An unexpected error occurred: “EPERM: operation not permitted, scandir ‘E:\\aPritice\\JDe\\e
- How to Solve antd Import error in Next.js
- React uses antd to import error messages on demand
- npm install: npm ERR! errno -4048, Error: EPERM: operation not permitted[How to Solve]
- npm run build : No such file or directory [How to Solve]
- npm ERR! { Error: EPERM: operation not permitted, mkdir ‘D:\Program Files\nodejs\node_cache\_cacache’
- ERROR EPERM: operation not permitted, mkdir ‘C:\Users\Administrator\Desktop\text\nuxt\basic\…
- Eperm: operation not permitted, unlink
- NPM install error reporting in Windows: solution to operation not permitted, rename