TypeScript 常见问题
应该全局还是本地安装 TypeScript?
¥Should TypeScript be installed globally or locally?
确保你已在本地安装了 TypeScript,即使用 npm install typescript 而不是 npm install -g typescript,或者使用 yarn add typescript 而不是 yarn global add typescript。有关更多信息,请参阅 #2041。
¥Make sure that you have installed TypeScript locally i.e. by using npm install typescript, not npm install -g typescript,
or by using yarn add typescript, not yarn global add typescript.
See #2041 for more information.