When cmd tries to run node_modules/.bin/tsc I get this error:
'node_modules' is not recognized as an internal or external command,
operable program or batch file.
Package.json file contains the following:
{
"name": "AFK_Game",
"version": "0.0.1",
"private": false,
"bin": {
"$": "./dist/bin/app.js"
},
"main": "./dist/app",
"scripts": {
"start": "npm run build && cd dist && node app",
"build": "node_modules/.bin/tsc"
},
"dependencies": {
"gulp": "^4.0.2",
"@types/bluebird": "^3.5.19",
"@types/node": "8.10.54",
"bluebird": "^3.5.1",
"crc": "^3.8.0",
"pinus": "1.4.8",
"reflect-metadata": "^0.1.10",
"source-map-support": "^0.5.0"
},
"devDependencies": {
"@babel/core": "^7.18.5",
"@babel/node": "^7.18.5",
"@types/crc": "^3.4.0",
"tslint": "5.20.1",
"typescript": "3.7.3"
}
}
Does anyone know how to fix this?