我怎样才能使它工作.我试着给 sudo 许可 [英] How can i make this working. I tried giving sudo permissoins
本文介绍了我怎样才能使它工作.我试着给 sudo 许可的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
**我目前正在使用linux.并尝试使用 sudo 权限启动应用程序,但没有成功.**我刚刚安装了 expo-cli 并创建了新项目.当我启动应用程序时.它显示
** I'm currently using linux. and tried with starting the app with sudo permission and it didn't work. ** I just installed expo-cli and created new project. When I start the app. It shows
错误信息
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'
}
推荐答案
更改 tmp 文件夹的权限将解决该问题,尝试:
Changing the permission on your tmp folder will resolve that, try with:
chmod -R 0777 /tmp
这篇关于我怎样才能使它工作.我试着给 sudo 许可的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文