【问题标题】:TypeScript Compiler (tsc) doesn't respond on Raspberry PITypeScript 编译器 (tsc) 在 Raspberry PI 上没有响应
【发布时间】:2020-01-25 10:11:35
【问题描述】:
我的树莓派一夜之间无缘无故死了。可能是导致问题的硬件。
我可以在我的计算机上运行 tsc,但是当我尝试在我的 pi 3 上编译时,tsc 只是不会响应。我试图重新安装打字稿并在简单的示例代码上对其进行测试。 tsc --help 也没有回应。
【问题讨论】:
标签:
node.js
linux
typescript
raspberry-pi
【解决方案1】:
您使用的是什么版本的tsc?
我今天注意到在 Raspberry PI 3 上对我的机器人进行了类似的更改。tsc
版本 3.7.5,节点 v10.16.3,npm v6.13.4。 $ npm run build 和 $ tsc 不会回应。
在全局重新安装 tsc ($ npm install -g tsc) 后,$ tsc 和 $ npm run build 都工作了。编译时间仍然明显更长。