D
D
Danil Shchuchkin2020-06-13 16:15:57
linux
Danil Shchuchkin, 2020-06-13 16:15:57

What are the errors when running react native with expo?

Created a project with expo init PROJECT_NAME . At the beginning, everything was launched after the sudo npm start command and worked fine, but after some time, a lot of errors came up during startup (the project itself did not change in any way):

All mistakes
Failed to construct transformer: Error: EACCES: permission denied, open '/tmp/haste-map-metro-4-8f756819dbb8dd9c319741d6e9b4af58-7c79dc105f33c5237826d6dba0facc23'
at Object.openSync (fs.js:458:3)
at Object.writeFileSync (fs.js:1355:35)
at Object.writeFileSync (/home/varkrift/projects/reactNative/reckue-app/node_modules/jest-serializer/build/index.js:196:21)
at HasteMap._persist (/home/varkrift/projects/reactNative/reckue-app/node_modules/jest-haste-map/build/index.js:944:31)
at /home/varkrift/projects/reactNative/reckue-app/node_modules/jest-haste-map/build/index.js:497:17
at Generator.next ()
at asyncGeneratorStep (/home/varkrift/projects/reactNative/reckue-app/node_modules/jest-haste-map/build/index.js:193:24)
at _next (/home/varkrift/projects/reactNative/reckue-app/node_modules/jest-haste-map/build/index.js:213:9)
at processTicksAndRejections (internal/process/task_queues.js:97:5) {
errno: -13,
syscall: 'open',
code: 'EACCES',
path: '/tmp/haste-map-metro-4-8f756819dbb8dd9c319741d6e9b4af58-7c79dc105f33c5237826d6dba0facc23'
}

(node:10636) UnhandledPromiseRejectionWarning: Error: EACCES: permission denied, open '/tmp/haste-map-metro-4-8f756819dbb8dd9c319741d6e9b4af58-7c79dc105f33c5237826d6dba0facc23'
at Object.openSync (fs.js:458:3)
at Object.writeFileSync (fs.js:1355:35)
at Object.writeFileSync (/home/varkrift/projects/reactNative/reckue-app/node_modules/jest-serializer/build/index.js:196:21)
at HasteMap._persist (/home/varkrift/projects/reactNative/reckue-app/node_modules/jest-haste-map/build/index.js:944:31)
at /home/varkrift/projects/reactNative/reckue-app/node_modules/jest-haste-map/build/index.js:497:17
at Generator.next ()
at asyncGeneratorStep (/home/varkrift/projects/reactNative/reckue-app/node_modules/jest-haste-map/build/index.js:193:24)
at _next (/home/varkrift/projects/reactNative/reckue-app/node_modules/jest-haste-map/build/index.js:213:9)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:10636) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_reje... (rejection id: 1)
(node:10636) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.


I understand the problem with access rights (maybe not right), but I don’t quite understand where. I tried to create another project using expo init PROJECT_NAME and run it, but the same errors came out. Please tell me how can I fix this

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergei Chamkin, 2020-06-13
@Sergei1337

Try
https://stackoverflow.com/questions/50639690/on-np...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question