小编Moh*_*oul的帖子

TS错误:?无法编译 TypeScript - TSError(diagnosticText,diagnosticCodes)

当我运行yarn start服务器时出现以下错误,我尝试在 package.json 和 tsconfig.json 中修复它,但仍然无法正常工作

\n\n
xxxxxxxxxxx/node_modules/ts-node/src/index.ts:423\n    return new TSError(diagnosticText, diagnosticCodes)\n           ^\nTSError: \xe2\xa8\xaf Unable to compile TypeScript:\nsrc/startServer.ts:63:7 - error TS2345: Argument of type '{ store: RateLimitRedisStore; windowMs: number; max: number; delayMs: number; }' is not assignable to parameter of type 'Options'.\n  Object literal may only specify known properties, and 'delayMs' does not exist in type 'Options'.\n\n63       delayMs: 0 // disable delaying - full speed until the max limit is reached\n         ~~~~~~~~~~\n
Run Code Online (Sandbox Code Playgroud)\n

node.js typescript server yarn-workspaces

5
推荐指数
0
解决办法
2390
查看次数

使用自制软件在 macOS 上安装 smlnj 不起作用

当我尝试使用自制软件安装 sml 时遇到以下错误

xxxxs-iMac:~ mo$ brew install smlnj

Error: No available formula with the name "smlnj"
==> Searching for a previously deleted formula (in the last month)...
Warning: homebrew/core is shallow clone. To get complete history run:
git -C "$(brew --repo homebrew/core)" fetch --unshallow

Error: No previously deleted formula found.
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
==> Searching taps on GitHub...
Error: No formulae found in taps.
Run Code Online (Sandbox Code Playgroud)

我该如何解决问题?

macos sml

3
推荐指数
1
解决办法
662
查看次数

标签 统计

macos ×1

node.js ×1

server ×1

sml ×1

typescript ×1

yarn-workspaces ×1