PS D:\siyantransit> npm run dev

> rest-express@1.0.0 dev
> cross-env NODE_ENV=development tsx server/index.ts

PS D:\siyantransit> cross-env DEBUG=* npm run dev
cross-env : The term 'cross-env' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ cross-env DEBUG=* npm run dev
+ ~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (cross-env:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

PS D:\siyantransit> cross-env DEBUG=* tsx server/index.ts
cross-env : The term 'cross-env' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ cross-env DEBUG=* tsx server/index.ts
+ ~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (cross-env:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

PS D:\siyantransit> node --loader tsx server/index.ts

node:internal/modules/run_main:123
    triggerUncaughtException(
    ^
Error: tsx must be loaded with --import instead of --loader
The --loader flag was deprecated in Node v20.6.0 and v18.19.0
    at initialize (file:///D:/siyantransit/node_modules/tsx/dist/esm/index.mjs:1:985)
    at Hooks.addCustomLoader (node:internal/modules/esm/hooks:183:24)
    at Hooks.register (node:internal/modules/esm/hooks:157:16)
    at async initializeHooks (node:internal/modules/esm/utils:324:5)
    at async customizedModuleWorker (node:internal/modules/esm/worker:109:13)

Node.js v22.17.0
PS D:\siyantransit> npm install --save-dev cross-env

up to date, audited 629 packages in 16s

76 packages are looking for funding
  run `npm fund` for details

5 moderate severity vulnerabilities

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.
PS D:\siyantransit> npm run dev

> rest-express@1.0.0 dev
> cross-env NODE_ENV=development tsx server/index.ts

PS D:\siyantransit> npm install --save-dev cross-env

up to date, audited 629 packages in 3s

76 packages are looking for funding
  run `npm fund` for details

5 moderate severity vulnerabilities

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.
PS D:\siyantransit> npm audit fix --force
npm warn using --force Recommended protections disabled.
npm warn audit Updating vite to 7.1.2, which is a SemVer major change.
npm warn audit Updating drizzle-kit to 0.31.4, which is a SemVer major change.
npm warn ERESOLVE overriding peer dependency
npm warn While resolving: vite@7.1.2
npm warn Found: @types/node@20.16.11
npm warn node_modules/@types/node
npm warn   @types/node@"*" from @types/body-parser@1.19.6
npm warn   node_modules/@types/body-parser
npm warn     @types/body-parser@"*" from @types/express@4.17.21
npm warn     node_modules/@types/express
npm warn   7 more (@types/connect, @types/express-serve-static-core, ...)
npm warn
npm warn Could not resolve dependency:
npm warn peerOptional @types/node@"^20.19.0 || >=22.12.0" from vite@7.1.2
npm warn node_modules/vite
npm warn   dev vite@"7.1.2" from the root project
npm warn   2 more (@tailwindcss/vite, @vitejs/plugin-react)
npm warn
npm warn Conflicting peer dependency: @types/node@24.2.1
npm warn node_modules/@types/node
npm warn   peerOptional @types/node@"^20.19.0 || >=22.12.0" from vite@7.1.2
npm warn   node_modules/vite
npm warn     dev vite@"7.1.2" from the root project
npm warn     2 more (@tailwindcss/vite, @vitejs/plugin-react)
npm warn cleanup Failed to remove some directories [
npm warn cleanup   [
npm warn cleanup     'D:\\siyantransit\\node_modules\\.vite-vaJBcDzv',
npm warn cleanup     [Error: EPERM: operation not permitted, unlink 'D:\siyantransit\node_modules\.vite-vaJBcDzv\node_modules\@esbuild\win32-x64\esbuild.exe'] {
npm warn cleanup       errno: -4048,
npm warn cleanup       code: 'EPERM',
npm warn cleanup       syscall: 'unlink',
npm warn cleanup       path: 'D:\\siyantransit\\node_modules\\.vite-vaJBcDzv\\node_modules\\@esbuild\\win32-x64\\esbuild.exe'
npm warn cleanup     }
npm warn cleanup   ]
npm warn cleanup ]

added 5 packages, removed 55 packages, changed 2 packages, and audited 579 packages in 31s

76 packages are looking for funding
  run `npm fund` for details

# npm audit report

esbuild  <=0.24.2
Severity: moderate
esbuild enables any website to send any requests to the development server and read the response - https://github.com/advisories/GHSA-67mh-4wv8-2f99
fix available via `npm audit fix --force`
Will install drizzle-kit@0.18.1, which is a breaking change
node_modules/@esbuild-kit/core-utils/node_modules/esbuild
  @esbuild-kit/core-utils  *
  Depends on vulnerable versions of esbuild
  node_modules/@esbuild-kit/core-utils
    @esbuild-kit/esm-loader  *
    Depends on vulnerable versions of @esbuild-kit/core-utils
    node_modules/@esbuild-kit/esm-loader
      drizzle-kit  0.17.5-6b7793f - 0.17.5-e5944eb || 0.18.1-065de38 - 0.18.1-f3800bf || >=0.19.0-07024c4
      Depends on vulnerable versions of @esbuild-kit/esm-loader
      node_modules/drizzle-kit

4 moderate severity vulnerabilities

To address all issues (including breaking changes), run:
  npm audit fix --force
PS D:\siyantransit>  npm audit fix --force
npm warn using --force Recommended protections disabled.
npm warn audit Updating drizzle-kit to 0.18.1, which is a SemVer major change.
npm warn ERESOLVE overriding peer dependency
npm warn While resolving: vite@7.1.2
npm warn Found: @types/node@20.16.11
npm warn node_modules/@types/node
npm warn   @types/node@"*" from @types/body-parser@1.19.6
npm warn   node_modules/@types/body-parser
npm warn     @types/body-parser@"*" from @types/express@4.17.21
npm warn     node_modules/@types/express
npm warn   7 more (@types/connect, @types/express-serve-static-core, ...)
npm warn
npm warn Could not resolve dependency:
npm warn peerOptional @types/node@"^20.19.0 || >=22.12.0" from vite@7.1.2
npm warn node_modules/vite
npm warn   peer vite@"^5.2.0 || ^6 || ^7" from @tailwindcss/vite@4.1.11
npm warn   node_modules/@tailwindcss/vite
npm warn   2 more (@vitejs/plugin-react, the root project)
npm warn
npm warn Conflicting peer dependency: @types/node@24.2.1
npm warn node_modules/@types/node
npm warn   peerOptional @types/node@"^20.19.0 || >=22.12.0" from vite@7.1.2
npm warn   node_modules/vite
npm warn     peer vite@"^5.2.0 || ^6 || ^7" from @tailwindcss/vite@4.1.11
npm warn     node_modules/@tailwindcss/vite
npm warn     2 more (@vitejs/plugin-react, the root project)
npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated glob@8.1.0: Glob versions prior to v9 are no longer supported
npm error code ERR_INVALID_ARG_TYPE
npm error The "file" argument must be of type string. Received undefined
npm error A complete log of this run can be found in: C:\Users\tumuk\AppData\Local\npm-cache\_logs\2025-08-12T10_38_40_153Z-debug-0.log
PS D:\siyantransit> npm install --save-dev cross-env
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: vite@7.1.2
npm error Found: @types/node@20.16.11
npm error node_modules/@types/node
npm error   @types/node@"*" from @types/body-parser@1.19.6
npm error   node_modules/@types/body-parser
npm error     @types/body-parser@"*" from @types/express@4.17.21
npm error     node_modules/@types/express
npm error       @types/express@"*" from @types/connect-pg-simple@7.0.3
npm error       node_modules/@types/connect-pg-simple
npm error         dev @types/connect-pg-simple@"^7.0.3" from the root project
npm error       5 more (@types/express-session, @types/passport, ...)
npm error   @types/node@"*" from @types/connect@3.4.38
npm error   node_modules/@types/connect
npm error     @types/connect@"*" from @types/body-parser@1.19.6
npm error     node_modules/@types/body-parser
npm error       @types/body-parser@"*" from @types/express@4.17.21
npm error       node_modules/@types/express
npm error         @types/express@"*" from @types/connect-pg-simple@7.0.3
npm error         node_modules/@types/connect-pg-simple
npm error         5 more (@types/express-session, @types/passport, ...)
npm error   6 more (@types/express-serve-static-core, @types/pg, ...)
npm error
npm error Could not resolve dependency:
npm error peerOptional @types/node@"^20.19.0 || >=22.12.0" from vite@7.1.2
npm error node_modules/vite
npm error   peer vite@"^5.2.0 || ^6 || ^7" from @tailwindcss/vite@4.1.11
npm error   node_modules/@tailwindcss/vite
npm error     dev @tailwindcss/vite@"^4.1.3" from the root project
npm error   peer vite@"^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0" from @vitejs/plugin-react@4.7.0
npm error   node_modules/@vitejs/plugin-react
npm error     dev @vitejs/plugin-react@"^4.3.2" from the root project
npm error   1 more (the root project)
npm error
npm error Conflicting peer dependency: @types/node@24.2.1
npm error node_modules/@types/node
npm error   peerOptional @types/node@"^20.19.0 || >=22.12.0" from vite@7.1.2
npm error   node_modules/vite
npm error     peer vite@"^5.2.0 || ^6 || ^7" from @tailwindcss/vite@4.1.11
npm error     node_modules/@tailwindcss/vite
npm error       dev @tailwindcss/vite@"^4.1.3" from the root project
npm error     peer vite@"^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0" from @vitejs/plugin-react@4.7.0
npm error     node_modules/@vitejs/plugin-react
npm error       dev @vitejs/plugin-react@"^4.3.2" from the root project
npm error     1 more (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 C:\Users\tumuk\AppData\Local\npm-cache\_logs\2025-08-12T10_39_14_834Z-eresolve-report.txt
npm error A complete log of this run can be found in: C:\Users\tumuk\AppData\Local\npm-cache\_logs\2025-08-12T10_39_14_834Z-debug-0.log
PS D:\siyantransit>