我怎样才能使它工作.我尝试给sudo permissoins [英] How can i make this working. I tried giving sudo permissoins

查看:56
本文介绍了我怎样才能使它工作.我尝试给sudo permissoins的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

**我目前正在使用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 permissoins的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆