【发布时间】:2016-06-08 02:01:21
【问题描述】:
我在 debian 服务器上安装了一个sailsjs 应用程序。我唯一的用户是 root,我在 root 中安装了所有东西(npm install、npm installsails -g、npm install pm2 -g)。当我尝试使用我的 root 用户(sails lift --prod)部署它时,出现权限错误:
Grunt :: Running "clean:dev" (clean) task
Grunt :: Cleaning .tmp/public...
Grunt :: Warning: Cannot delete files outside the current working directory.
** Grunt :: An error occurred. **
error:
------------------------------------------------------------------------
Aborted due to warnings.
Running "clean:dev" (clean) task
Cleaning .tmp/public...Warning: Cannot delete files outside the current working directory.
------------------------------------------------------------------------
我检查了每个文件夹的权限,它们都归 root 所有。
有人遇到过这个问题吗?
非常感谢
【问题讨论】: