Heather92065
Heather92065

Reputation: 7893

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: enter image description here

Here's the error message: enter image description here

Upvotes: 8

Views: 7185

Answers (2)

WebstormUser
WebstormUser

Reputation: 1

First, I ran:
npm install gulp-typescript typescript --save-dev

Then, I downloaded 2017.1.4 version of WebStorm and reinstalled WebStorm.

Everything works fine after that.

Upvotes: 0

Heather92065
Heather92065

Reputation: 7893

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. Direct Edit

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.
Fixed

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

Upvotes: 6

Related Questions