kei*_*eil 6 javascript android node.js reactjs react-native
每次我尝试将我的应用程序部署到 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)
Run Code Online (Sandbox Code Playgroud)
小智 1
我猜这个问题是因为你的 Windows env 路径设置而发生的,确切的解决方案是:添加%SystemRoot%\system32到你的 PATH,按照以下步骤操作:
%SystemRoot%\system32
Run Code Online (Sandbox Code Playgroud)
提示:记住,您应该重新启动系统。重启后这个问题就会消失。