Sails Js 权限

0 node.js sails.js pm2

我在 Debian 服务器上有一个 sailsjs 应用程序。我唯一的用户是 root,我在 root 中安装了所有内容(npm install、npm install sails -g、npm install pm2 -g)。当我尝试使用我的根用户(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. 
------------------------------------------------------------------------
Run Code Online (Sandbox Code Playgroud)

我检查了每个文件夹的权限,它们都是root拥有的。

有人遇到这个问题吗?

非常感谢

sup*_*tas 5

看起来,您更新了 Node.Try 删除 .tmp 文件夹同时编辑tasks/config/clean.js:

  grunt.config.set('clean', {
    options: { force: true },
    dev: ['.tmp/public/**'],
    build: ['www']
  });
Run Code Online (Sandbox Code Playgroud)