问题描述
以前,我只需运行mrt
即可启动Meteor 0.6.6.3.
Previously I was able to start Meteor 0.6.6.3 by simply running mrt
.
最近,除非我用sudo mrt
以root身份运行,否则Meteor 0.7.0.1无法正常运行.像MONGO_URL
这样的环境变量需要root才能设置.
Recently, Meteor 0.7.0.1 wont run properly unless I run it as root with sudo mrt
. Environmental variables like MONGO_URL
requires root to set it.
有什么想法吗?我在Mac OSX上使用Mountain Lion.
Any ideas what happened? I'm using Mountain Lion on Mac OSX.
推荐答案
您以前可能已经使用sudo运行过它.当您仅使用sudo运行一次并写入文件时,该文件将成为root文件root用户文件,因此它需要更多权限才能运行,也不会运行按说.
You might have run it with sudo once before. When you run it with sudo just once and a file is written the files become root files root user file so it needs more permissions to run and wont runordinarily.
一旦它必须具有软件包的更新文件,但您可能已经运行过sudo mrt
,但是它们现在由root拥有,而不是普通用户拥有.
You might have run sudo mrt
once it must have updated files for a package but they're now owned by root instead of your normal user.
我确定有一个终端命令可以将其取回,但使用磁盘实用程序并运行修复磁盘权限"也可以解决该问题(我认为).
I'm sure theres a terminal command to get it back but using Disk Utility and running 'Repair Disk Permissions' can also fix it (i think).
这篇关于流星需要sudo才能运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!