springeye / vue-for-idea

This is vue plugin for idea
https://plugins.jetbrains.com/plugin/9188
BSD 3-Clause "New" or "Revised" License
321 stars 45 forks source link

'Install Vue' assumes location of npm #14

Open justrhysism opened 8 years ago

justrhysism commented 8 years ago

When attempting to "Install Vue", it fails with:

IllegalArgumentException: exe: /usr/local/bin/npm doesn't exist

I can see the location assumption here: https://github.com/henjue/vue-for-idea/blob/master/src/main/java/io/j99/idea/vue/action/InstallAction.java#L46

Many of us use NVM or some form of version manager, and deliberately don't have a global installation of Node.

springeye commented 8 years ago

you need install npm。

ubuntu example :sudo apt-get install npm

justrhysism commented 8 years ago

Please read the issue beyond the first two lines. You have closed this prematurely.

I have NPM installed, but not where your plugin assumes it is.

francisfeng commented 8 years ago

Have the same issue too.

I am running WebStorm on my Window 10 laptop and have Node.js installed globally. Is it because this plugin doesn't support Windows yet?

hanai commented 8 years ago

same issue with nvm

qiaosangning commented 8 years ago

+1, same problem with upstairs, can i change the npm path?