1
votes

I just wrote a simple "Hello world" program and printing it to console.log in typescript. Below package.json settings are taken and when trying to compile the code using "npm run build" its giving error. Please help!

Package.json file:
{
  "scripts": {
    "build": "tsc app.ts",
    "start": "lite-server"
  },
  "devDependencies": {
    "lite-server": "^2.5.4",
    "typescript": "^4.4.2"
  }
}

'Basic' is not recognized as an internal or external command, operable program or batch file. node:internal/modules/cjs/loader:936 throw err;