sh: lb-tsc: command not found. How I fixed?

typescript loopback ts

I got the following error while installation in the project with loopback dependencies:

npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! @project build: `lb-tsc -p tsconfig.json`
npm ERR! spawn ENOENT

sh: lb-tsc: command not found

The fix was very easy. I ran only the npm install command in the project directory. NPM installed some loopback dependencies and the issue was resolved:

Loopback dependencies

comments powered by Disqus