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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With