Ramanujan Taylor
Ramanujan Taylor

Reputation: 229

WebStorm error: Cannot install Node.js module: please specify default Node.js interpreter

When I click on Install 'mdbvue'

enter image description here

the following error appears in WebStorm:

enter image description here

I looked at this thread and it says that I have to set the right Run Configurations.

So I checked the path to node using which node in the terminal:

enter image description here

Then, I changed the path in the Run/Debug Configurations for npm and Node.js to:

enter image description here

But it still doesn't work.

What am I doing wrong?

Upvotes: 4

Views: 3842

Answers (2)

Tejasvi Manmatha
Tejasvi Manmatha

Reputation: 654

Go Webstorm preferences (CMD + , on mac), then choose node.js and npm choose the node version that is installed on ur machine. I have NVM, so I choose version that are installed using NVM (easy to manage different node versions)

enter image description here

Upvotes: 6

Ramanujan Taylor
Ramanujan Taylor

Reputation: 229

Fixing the package.json solved the issue

Upvotes: -2

Related Questions