error An unexpected error occurred: “EPERM: operation not permitted, scandir ‘E:\\aPritice\\JDe\\e

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: