question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: ENOENT: no such file or directory, open

See original GitHub issue

New Version

0.68.1

Old Version

0.68.1

Build Target(s)

android qemu-system-x86_64

Output of react-native info

Error: ENOENT: no such file or directory, open ‘/Users/jiangchao/Desktop/native/MyAPP/file:/private/var/folders/4n/23_ktqmn09dcf2k_ynkz8z5c0000gn/T/AppTranslocation/472E8D61-9B1C-43CA-AF6F-2516348153ED/d/React%20Native%20Debugger.app/Contents/Resources/app.asar/js/RNDebuggerWorker.js’ at Object.openSync (node:fs:586:3) at Object.readFileSync (node:fs:454:35) at getCodeFrame (/Users/jiangchao/Desktop/native/MyAPP/node_modules/metro/src/Server.js:949:18) at Server._symbolicate (/Users/jiangchao/Desktop/native/MyAPP/node_modules/metro/src/Server.js:1022:22) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async Server._processRequest (/Users/jiangchao/Desktop/native/MyAPP/node_modules/metro/src/Server.js:429:7) { errno: -2, syscall: ‘open’, code: ‘ENOENT’, path: ‘/Users/jiangchao/Desktop/native/MyAPP/file:/private/var/folders/4n/23_ktqmn09dcf2k_ynkz8z5c0000gn/T/AppTranslocation/472E8D61-9B1C-43CA-AF6F-2516348153ED/d/React%20Native%20Debugger.app/Contents/Resources/app.asar/js/RNDebuggerWorker.js’ }

Issue and Reproduction Steps

npx react-native init MyAPP cd MyAPP npm run start npm run android

{ “name”: “MyAPP”, “version”: “0.0.1”, “private”: true, “scripts”: { “android”: “react-native run-android”, “ios”: “react-native run-ios”, “start”: “react-native start”, “test”: “jest”, “lint”: “eslint .” }, “dependencies”: { “@babel/plugin-proposal-decorators”: “^7.17.9”, “mobx”: “^6.5.0”, “mobx-react”: “^7.3.0”, “react”: “17.0.2”, “react-native”: “0.68.1” }, “devDependencies”: { “@babel/core”: “^7.17.9”, “@babel/runtime”: “^7.17.9”, “@react-native-community/eslint-config”: “^3.0.1”, “babel-jest”: “^27.5.1”, “eslint”: “^8.13.0”, “jest”: “^27.5.1”, “metro-react-native-babel-preset”: “^0.70.1”, “react-devtools”: “^4.14.0”, “react-native-vector-icons”: “^9.1.0”, “react-test-renderer”: “17.0.2” }, “jest”: { “preset”: “react-native” }, “resolutions”: { “react-devtools-core”: “4.14.0” } }

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
markkdammcommented, Aug 3, 2022

I had this exact same problem, it’s because you are trying to install packages while expo is running

Go to the console, stop the execution (ctrl+c),

Install the package using either yarn or npm

Start the server again once the package has been installed using expo start. it worked for me, hope this helps

0reactions
jobayer977commented, Dec 2, 2022

Facing Same issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to resolve Nodejs: Error: ENOENT: no such file or directory
Your app is expecting to find a file at /home/embah/node/nodeapp/config/config.json but that file does not exist (which is what ENOENT ...
Read more >
How To Fix the “Enoent” Error? - Position Is Everything
No such files or directory means that the library is currently needed or the executable binary doesn't exist. Conclusion. Let's review what we...
Read more >
ENOENT: no such file or directory · Issue #1171 - GitHub
After updating from 6.3.0 to 6.4.1 I've got errors. node:internal/process/promises:246 triggerUncaughtException(err, true /* fromPromise */) ...
Read more >
How to fix: npm ERR! enoent ENOENT: no such file or ...
I recently struggled for a while with an npm error thrown when executing npm install of some package. The error message was npm...
Read more >
Node.js Error: ENOENT: no such file or directory (2023)
Error: ENOENT: no such file or directory · This problem occurs when a file does not exist; therefore, check to see if the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found