Denrox / nestjs-microservices-example

A working example of microservice architecture implementation using nestjs framework
883 stars 257 forks source link

Except for db, all others failed to start #16

Open qidasheng369 opened 2 weeks ago

qidasheng369 commented 2 weeks ago
image

node_modules/@types/express-serve-static-core/index.d.ts(1211,48): error TS1005: ';' expected. node_modules/@types/express-serve-static-core/index.d.ts(1227,16): error TS1005: ';' expected. node_modules/@types/express-serve-static-core/index.d.ts(1228,33): error TS1005: ';' expected. node_modules/@types/express-serve-static-core/index.d.ts(1296,1): error TS1160: Unterminated template literal. npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! permission@0.0.1 build: rimraf dist && tsc -p tsconfig.build.json npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the permission@0.0.1 build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2024-09-04T16_42_01_564Z-debug.log

It's all about this issue.

more msg

user serve

npm run build && npm run start:prod

user@0.0.1 build /Users/qidasheng/dev/service/nestjs/nestjs-microservices-example/user rimraf dist && tsc -p tsconfig.build.json

node_modules/@types/express-serve-static-core/index.d.ts:93:68 - error TS1110: Type expected.

93 type RemoveTail<S extends string, Tail extends string> = S extends ${infer P}${Tail} ? P : S;



node_modules/@types/express-serve-static-core/index.d.ts:93:77 - error TS1005: '}' expected.

93 type RemoveTail<S extends string, Tail extends string> = S extends `${infer P}${Tail}` ? P : S;
                                                                               ~

node_modules/@types/express-serve-static-core/index.d.ts:93:78 - error TS1128: Declaration or statement expected.

93 type RemoveTail<S extends string, Tail extends string> = S extends `${infer P}${Tail}` ? P : S;
npm error Found: @nestjs/common@8.0.0
npm error node_modules/@nestjs/common
npm error   @nestjs/common@"8.0.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peer @nestjs/common@"^6.0.0 || ^7.0.0" from @nestjs/mongoose@7.2.4
npm error node_modules/@nestjs/mongoose
npm error   @nestjs/mongoose@"7.2.4" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /Users/qidasheng/.npm/_logs/2024-09-04T16_45_04_318Z-eresolve-report.txt
npm error A complete log of this run can be found in: /Users/qidasheng/.npm/_logs/2024-09-04T16_45_04_318Z-debug-0.log