文章内容

2017/6/15 9:49:04,作 者: 黄兵

How to fix IntelliJ IDEA 2016 TypeScript Error, “Cannot start compiler process”

After setting up IntelliJ IDEA 2016.2.x with a TypeScript compiler, in my case Node v6.2.1, I get a TypeScript Project Error as follows:

"Error: Cannot start compiler process"

This started happening after IntelliJ was upgraded to 2016.2.x. Previous versions worked fine.

Here's how I setup the TypeScript compiler: 

Here's the error message: 

To fix this problem, directly edit the TypeScript configuration within the project's .idea directory. Within the project structure, navigate to your .idea directory then locate and open file typescript-compiler.xml like below. 

Now add the following xml option element after the "useConfig" option element (make sure to use the path appropriate your node installation):

<option name="nodeInterpreterTextField" value="$PROJECT_DIR$/../../node/bin/node" />

Be sure to change the directory path to your instance of node.


Sadly, this solution we be overridden every time you edit and save your settings. Hopefully, IDEA will have a fix for this soon.

分享到:

发表评论

评论列表