我正在 NestJS 网站上学习该课程。我需要安装类验证器和类转换器npm i class-validator class-transformer
但是当我这样做时,我收到错误:
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '@angular-devkit/core@12.2.10',
npm WARN EBADENGINE required: {
npm WARN EBADENGINE node: '^12.14.1 || >=14.0.0',
npm WARN EBADENGINE npm: '^6.11.0 || ^7.5.6',
npm WARN EBADENGINE yarn: '>= 1.13.0'
npm WARN EBADENGINE },
npm WARN EBADENGINE current: { node: 'v16.11.0', npm: '8.0.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '@angular-devkit/schematics@12.2.10',
npm WARN EBADENGINE required: {
npm WARN …Run Code Online (Sandbox Code Playgroud) 使用 Playwright,我想使用变量的值查找元素
例如:
let name = 'Sully'
await page.click(`li:has-text(${sully})`)
Run Code Online (Sandbox Code Playgroud)
但我收到以下错误:
page.click: Error: "has-text" engine expects a single string
当我使用 VSCode 中的自动完成建议来创建get_context_data()函数时:
def get_context_data(self, **kwargs: Any) -> Dict[str, Any]:
return super().get_context_data(**kwargs)
Run Code Online (Sandbox Code Playgroud)
我得到一个NameError:
NameError: name 'Any' is not defined
我不熟悉在 Python 中使用类型提示 - 我需要为类型导入一些东西吗Any?
angular ×1
django ×1
nestjs ×1
node.js ×1
npm ×1
playwright ×1
python ×1
typescript ×1
ubuntu ×1