وقت بخیر
اقای علی محمدی طبق اموزش ها پیش رفتم ولی زمان اجرای nodemon به این مشکل بر میخورم و این اخطار رو توی ترمینال دریافت میکنم
'ts-node' is not recognized as an internal or external command operable progrm or batch file.
کانفیگ نودمون و تایپ اسکریپت هم پایین گذاشتم
nodemon.json
{
"watch":[
"src"
],
"ext":"ts",
"ignore":[
"src/**/*.spec.ts"
],
"exec":"ts-node ./src/server.ts"
}
tsconfig.json
{
"compilerOptions": {
"target": "ES2018",
"module": "CommonJS",
"rootDir": "./src",
"outDir": "./dist",
"strict": true,
"baseUrl": "./",
"removeComments": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"moduleResolution": "node",
"importHelpers": true,
"types": [
"node"
],
"typeRoots": [
"node_modules/@types"
]
},
"include": ["src/**/*.ts"],
"exclude": [
"./src/public/",
"node_modules"]
}
اگر به این مشکل خوردید ts-node و nodemon رو به صورت گلوبال نصب کنید
(مشکل من اینجوری حل شد)