react native初學之路--報 operation not permitted錯誤


  上午代碼還沒問題,下午突然就報這個錯誤了:

  ERROR  EPERM: operation not permitted, lstat 'C:\Users\Administrator\Desktop\ReactNativeUpdate\app\build\generated\assets\shaders\debug'   {"errno":-4048,"code":"EPERM","syscall":"lstat","path":"C:\\Users\\Administrator\\Desktop\\ReactNativeUpdate\\app\\build\\generated\\assets\\shaders\\debug"}   Error: EPERM: operation not permitted, lstat 'C:\Users\Administrator\Desktop\ReactNativeUpdate\app\build\generated\assets\shaders\debug' at Error (native)

  搞不懂什么原因,最后百度知道解決方案:打開項目node_modules/react-native/local-cli/server/server.js 
  找到 process.on('uncaughtException', error =>
  {
 這個方法,把最后一句 process.exit(11); 注釋掉。
  再次運行就ok了!


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM