小编Ami*_*eza的帖子

我尝试将 postgresql md5 更改为 scram-sha-256,但出现 FATAL 密码身份验证失败

我正在使用postgresql并且作为学习的一部分,我尝试更改登录方法以获得更安全的登录方法。例如使用scram-sha-256而不是md5. 我尝试将我的文件更改为,password_encryption并将方法更改为,您可以在下面的配置中看到更改:scram-sha256postgresql.confpg_hba.confscram-sha-256

# - Authentication -

#authentication_timeout = 1min      # 1s-600s
password_encryption = scram-sha-256     # md5 or scram-sha-256
#db_user_namespace = off
and 

# TYPE  DATABASE        USER            ADDRESS                 METHOD

# IPv4 local connections:
host    all             all             127.0.0.1/32            scram-sha-256
# IPv6 local connections:
host    all             all             ::1/128                 scram-sha-256
# Allow replication connections from localhost, by a user with the
# replication privilege.
host    replication     all             127.0.0.1/32            scram-sha-256
host    replication     all …
Run Code Online (Sandbox Code Playgroud)

authentication postgresql

9
推荐指数
2
解决办法
2万
查看次数

生成新的 Nestjs 模块会导致错误:无法执行命令

我使用带有 M1 芯片的 MacOS monterey 作为操作系统。使用以下命令安装 NestJS cli:sudo npm install -g @nestjs/cli

当使用nest new message一切正常创建新的嵌套项目时,但是当我尝试使用此命令创建新模块时,nest generate module messages我遇到错误。

为什么会发生这种情况?我尝试使用安装原理图npm i -g @nestjs/schematics,我不知道是否应该安装它,但这无论如何都没有帮助。

我面临的错误是:

/Users/homayoun/training/messages/node_modules/@angular-devkit/schematics-cli/bin/schematics.js:338
            throw new Error(`Unknown argument ${key}. Did you mean ${(0, yargs_parser_1.decamelize)(key)}?`);
                  ^

Error: Unknown argument skipImport. Did you mean skip-import?
    at parseArgs (/Users/homayoun/training/messages/node_modules/@angular-devkit/schematics-cli/bin/schematics.js:338:19)
    at main (/Users/homayoun/training/messages/node_modules/@angular-devkit/schematics-cli/bin/schematics.js:122:49)
    at Object.<anonymous> (/Users/homayoun/training/messages/node_modules/@angular-devkit/schematics-cli/bin/schematics.js:367:5)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
    at node:internal/main/run_main_module:17:47

Failed to …
Run Code Online (Sandbox Code Playgroud)

node.js npm typescript nestjs

2
推荐指数
2
解决办法
7773
查看次数

标签 统计

authentication ×1

nestjs ×1

node.js ×1

npm ×1

postgresql ×1

typescript ×1