hello.
it doesn’t find ts-node and the server doesn’t start running.
my package.json is :
{
"name": "server",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"dev": "nodemon --watch \"src/**\" --ext \"ts,json\" --exec \"ts-node src/index.ts\"",
"start": "ts-node server/src/index.ts",
"build": "tsc src/index.ts"
},
"keywords": [],
"author": "",
"license": "MIT",
"dependencies": {
"@types/node": "^20.8.3",
"cors": "^2.8.5",
"express": "^4.18.2",
"mongoose": "^7.6.0",
"typescript": "^4.0.0"
},
"devDependencies": {
"@types/cors": "^2.8.14",
"@types/dotenv": "^8.2.0",
"@types/express": "^4.17.18",
"nodemon": "^3.0.1",
"ts-node": "^10.9.1"
}
}
error present during app deployment:
> todo_list@1.0.0 start
Oct 7 05:13:16 PM > cd server && ts-node src/index.ts
Oct 7 05:13:16 PM
Oct 7 05:13:16 PM sh: 1: ts-node: not found
help me pls