ERROR EPERM: operation not permitted

ERROR EPERM: operation not permitted, lstat 'D:\react-native\project\mjpet\android\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values'
windows下运行rn经常遇到以上错误

解决方法如下:
在node_modules/react-native/local-cli/util/Config.js中修改

const getBlacklistRE = () => {
return createBlacklist([/./fixtures/./,
/./.git/./,
/./app/build/./,
]);
};

你可能感兴趣的:(ERROR EPERM: operation not permitted)