【发布时间】:2021-01-11 04:24:13
【问题描述】:
每次我尝试将我的应用部署到 android 时都会遇到此问题,但它会破坏我的 Metro 服务器。
我已尝试更新我的环境变量。
events.js:174
throw er; // Unhandled 'error' event
^
Error: EPERM: operation not permitted, lstat 'C:\Users\user\Documents\DEV\react-native-dualscreen\dualscreeninfo\examples\android\app\build\generated\not_namespaced_r_class_sources\debug\processDebugResources\r\androidx\lifecycle\viewmodel'
Emitted 'error' event at:
at NodeWatcher.<anonymous> (C:\Users\user\Documents\DEV\react-native-dualscreen\dualscreeninfo\examples\node_modules\sane\src\node_watcher.js:291:16)
at FSReqWrap.oncomplete (fs.js:153:21)
【问题讨论】:
-
这是一个
permission issue尝试将您的cmd prompt运行为admin -
不幸的是,这是我的第一个倾向。即使以管理员身份运行 cmd/powershell,它仍然会发生
-
您是否尝试更改项目文件夹的只读模式?
-
你是什么意思?所以这也发生在不同文件夹中的项目中
-
我也遇到同样的错误
标签: javascript android node.js reactjs react-native