gpt4 book ai didi

node.js - Sails Js 权限

转载 作者:太空宇宙 更新时间:2023-11-04 02:57:26 25 4
gpt4 key购买 nike

我在 debian 服务器上有一个 sailsjs 应用程序。我唯一的用户是 root,我在 root 中安装了所有内容(npm install、npm install sails -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拥有的。

有人遇到这个问题吗?

非常感谢

最佳答案

看起来,您更新了 Node。尝试删除 .tmp 文件夹还要编辑tasks/config/clean.js:

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

关于node.js - Sails Js 权限,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35624877/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com