Failed to execute command: node @nestjs/schematics:service --name= --no-dry-run --no-skip怎么解决
Failed to execute command: node @nestjs/schematics:service --name= --no-dry-run --no-skip怎么解决
PS D:\nestjs\nestdemo04> nest g service httpServer
Error: Cannot read properties of undefined (reading ‘text’)
Failed to execute command: node @nestjs/schematics:service --name=http-server --no-dry-run --no-skip-import --language=“ts” --source-root=“src” --spec --no-flat --spec-file-suffix=“spec”
解决方法:
1、nodejs使用最新的 Nodejs 20.16.0
2、nestjs使用最新的Nestjs 10.4.2