Skip to content

Cant create server with npm install #1

@technophilix

Description

@technophilix
always getting this error....


npm install

> ketabedeeplink@0.0.1 postinstall
> npm run build


> ketabedeeplink@0.0.1 build
> nest build

src/auth/auth.repository.adapter.ts:226:9 - error TS2769: No overload matches this call.
  Overload 1 of 3, '(payload: string, options?: Omit<JwtSignOptions, keyof SignOptions> | undefined): string', gave the following error.
    Object literal may only specify known properties, and 'expiresIn' does not exist in type 'Omit<JwtSignOptions, keyof SignOptions>'.
  Overload 2 of 3, '(payload: Buffer<ArrayBufferLike>, options?: JwtSignOptions | undefined): string', gave the following error.
    Type 'string' is not assignable to type 'number | StringValue | undefined'.
  Overload 3 of 3, '(payload: any, options?: JwtSignOptions | undefined): string', gave the following error.
    Type 'string' is not assignable to type 'number | StringValue | undefined'.

226         expiresIn: RowtConfig.accessTokenExpires,
            ~~~~~~~~~

src/auth/auth.repository.adapter.ts:264:44 - error TS2769: No overload matches this call.
  Overload 1 of 3, '(payload: string, options?: Omit<JwtSignOptions, keyof SignOptions> | undefined): string', gave the following error.
    Argument of type '{ sub: number; email: string; role: string; }' is not assignable to parameter of type 'string'.
  Overload 2 of 3, '(payload: Buffer<ArrayBufferLike>, options?: JwtSignOptions | undefined): string', gave the following error.
    Argument of type '{ sub: number; email: string; role: string; }' is not assignable to parameter of type 'Buffer<ArrayBufferLike>'.
      Type '{ sub: number; email: string; role: string; }' is missing the following properties from type 'Buffer<ArrayBufferLike>': slice, subarray, write, toJSON, and 102 more.
  Overload 3 of 3, '(payload: { sub: number; email: string; role: string; }, options?: JwtSignOptions | undefined): string', gave the following error.
    Type 'string' is not assignable to type 'number | StringValue | undefined'.

264       const access_token = this.jwtService.sign(payload, {
                                               ~~~~

src/auth/auth.repository.adapter.ts:267:45 - error TS2769: No overload matches this call.
  Overload 1 of 3, '(payload: string, options?: Omit<JwtSignOptions, keyof SignOptions> | undefined): string', gave the following error.
    Argument of type '{ sub: number; email: string; role: string; }' is not assignable to parameter of type 'string'.
  Overload 2 of 3, '(payload: Buffer<ArrayBufferLike>, options?: JwtSignOptions | undefined): string', gave the following error.
    Argument of type '{ sub: number; email: string; role: string; }' is not assignable to parameter of type 'Buffer<ArrayBufferLike>'.
      Type '{ sub: number; email: string; role: string; }' is missing the following properties from type 'Buffer<ArrayBufferLike>': slice, subarray, write, toJSON, and 102 more.
  Overload 3 of 3, '(payload: { sub: number; email: string; role: string; }, options?: JwtSignOptions | undefined): string', gave the following error.
    Type 'string' is not assignable to type 'number | StringValue | undefined'.

267       const refresh_token = this.jwtService.sign(payload, {
                                                ~~~~


Found 3 error(s).

npm error code 1
npm error path /home/technophilix/ketabedeeplink
npm error command failed
npm error command sh -c npm run build
npm error A complete log of this run can be found in: /home/technophilix/.npm/_logs/2025-10-20T13_29_41_439Z-debug-0.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions