I would try to search for the string scripts.build=tsc in the codebase. From your 3rd line: somewhere - when running the command - it assumes the string is a name of npm package. Which obviously it is not, and probably it is an error in the command-line, like one space more, copy-pasted invisible character or similar.