I am moving from nodemon
to ts-node-dev
but I am not able to run my index.ts
file using ts-node-dev
.
I did the following:
yarn add ts-node-dev --dev
In my
package.json
I have:"devDependencies": { ... "nodemon": "^1.19.2", "ts-node": "8.3.0", "ts-node-dev": "^1.0.0-pre.56", "typescript": "3.6.3" }
If I run ts-node-dev
or ts-node-dev src/index.ts
I get the error:
command not found: ts-node-dev
What am I doing wrong? It seems to me that is correctly installed.
My scripts
"scripts": {
"start": "nodemon --exec ts-node src/index.ts",
"dev": "ts-node-dev src/index.ts"
}