我怎样才能让它工作。我尝试授予 sudo 权限

2024-01-23

** 我目前正在使用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'
}

更改 tmp 文件夹的权限将解决该问题,请尝试:

chmod -R 0777 /tmp
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

我怎样才能让它工作。我尝试授予 sudo 权限 的相关文章

随机推荐