phamleduy04 / texas-dps-scheduler

Texas DPS/DMV Automatic Scheduler
MIT License
281 stars 128 forks source link

ts-node: not found #158

Open iLikeSalads opened 2 months ago

iLikeSalads commented 2 months ago

Hi All,

First of all, thank you so much for making our lives better by developing this automated application.

The issue i face is when i'm trying to start application by running npm run start it throws below error sh: 1: ts-node: not found

i did install ts-node by doing npm install -g ts-node but now it throws different error like below

 Error: Cannot find module 'tslib'
Require stack:
- /workspaces/texas-dps-scheduler/src/index.ts
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1145:15)
    at Function.Module._resolveFilename.sharedData.moduleResolveFilenameHook.installedValue [as _resolveFilename] (/usr/local/share/nvm/versions/node/v20.15.1/lib/node_modules/ts-node/node_modules/@cspotcode/source-map-support/source-map-support.js:811:30)
    at Function.Module._load (node:internal/modules/cjs/loader:986:27)
    at Module.require (node:internal/modules/cjs/loader:1233:19)
    at require (node:internal/modules/helpers:179:18)
    at Object.<anonymous> (/workspaces/texas-dps-scheduler/src/index.ts:3:17)
    at Module._compile (node:internal/modules/cjs/loader:1358:14)
    at Module.m._compile (/usr/local/share/nvm/versions/node/v20.15.1/lib/node_modules/ts-node/src/index.ts:1618:23)
    at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
    at Object.require.extensions.<computed> [as .ts] (/usr/local/share/nvm/versions/node/v20.15.1/lib/node_modules/ts-node/src/index.ts:1621:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ '/workspaces/texas-dps-scheduler/src/index.ts' ]
}

Thank you everyone.

dmz94 commented 2 months ago

I am also seeing this...

phamleduy04 commented 2 months ago

can you try to do npm install then run it?

Alecmay101 commented 2 months ago

doing npm install first resolved this issue for me on 4.1.0

dmz94 commented 2 months ago

npm install fixed it for me. Pilot error on my part - THANKS!