【发布时间】:2023-04-04 11:25:02
【问题描述】:
** 我目前正在使用linux。并尝试使用 sudo 权限启动应用程序,但没有成功。 ** 我刚刚安装了 expo-cli 并创建了新项目。当我启动应用程序时。它显示
错误信息
Failed to construct transformer: Error: EACCES: permission denied, open '/tmp/haste-map-metro-4-36677ec4ffe69a9c48969ce0c6048f0e-05d9595d1f7d32f85d732f06fd3b25e9'
at Object.openSync (fs.js:465:3)
at Object.writeFileSync (fs.js:1416:35)
at Object.writeFileSync (/home/muthu/workspace/bootcamp/native/first/node_modules/jest-serializer/build/index.js:196:21)
at HasteMap._persist (/home/muthu/workspace/bootcamp/native/first/node_modules/jest-haste-map/build/index.js:944:31)
at /home/muthu/workspace/bootcamp/native/first/node_modules/jest-haste-map/build/index.js:497:17
at Generator.next (<anonymous>)
at asyncGeneratorStep (/home/muthu/workspace/bootcamp/native/first/node_modules/jest-haste-map/build/index.js:193:24)
at _next (/home/muthu/workspace/bootcamp/native/first/node_modules/jest-haste-map/build/index.js:213:9) {
errno: -13,
syscall: 'open',
code: 'EACCES',
path: '/tmp/haste-map-metro-4-36677ec4ffe69a9c48969ce0c6048f0e-05d9595d1f7d32f85d732f06fd3b25e9'
}
【问题讨论】:
标签: javascript linux react-native expo