locally build the electron + antd + react project and install the Babel plugin import. This is a Babel plug-in that can load code and style on demand
yarn add babel-plugin-import --dev
error An unexpected error occurred: “EPERM: operation not permitted, scandir ‘E:\aPritice\JDe\electron\react-electron-app01\node_modules\@types’”.
Solution:
1: Clear cache
npm cache clean --force
2: choose Win + x
use Win + X, select the command prompt (administrator), and run the command in it
Similar Posts:
- npm install: npm ERR! errno -4048, Error: EPERM: operation not permitted[How to Solve]
- [Solved] npmError: EPERM: operation not permitted,…
- How to Solve Electronic forge packer Error
- After npm5, execute NPM cache clean and report an error
- Causes and solutions of error reporting in require setting dynamic path
- Uncaught type error: create-react-app and electronfs.existsSync is not a function
- How to Solve error: command SH – C node install.js when installing electron
- [Solved] You must depend on an EXACT version of “electron-prebuilt-compile” not a range (got “^4.0.0”)
- Eperm: operation not permitted, unlink