【发布时间】:2015-02-19 11:42:43
【问题描述】:
Typescript 编译任务在 linux 机器上运行良好,但在 mac 上失败并出现以下不是特别有用的错误消息,并且看起来像二进制转储。
$ grunt
Running "ts:build" (ts) task
Compiling...
Fast compile will not work when --out is specified. Ignoring fast compilation
Using tsc v1.4.1
������������=��AF���=����
>> Error: tsc return code: 3
Warning: Task "ts:build" failed. Use --force to continue.
Aborted due to warnings.
我在 node v0.11.4 中使用 nvm,在 ruby v2.2.0 中使用 rvm。
任何想法如何解决这个问题,甚至调试?
【问题讨论】:
-
我看到你在使用
grunt— 你是在使用grunt-typescript包来插入 TypeScript 编译器吗? -
看起来不像
grunt-ts。 -
Nick,能否提供您
Gruntfile的相关部分? -
我用 grunt-ts 和 grunt-typescript 都试过了,但都失败了。
标签: gruntjs typescript nvm tsc typescript1.4