vue-for-idea icon indicating copy to clipboard operation
vue-for-idea copied to clipboard

'Install Vue' assumes location of npm

Open justrhysism opened this issue 9 years ago • 5 comments

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.

justrhysism avatar Feb 12 '16 06:02 justrhysism

you need install npm。

ubuntu example :sudo apt-get install npm

springeye avatar Feb 12 '16 07:02 springeye

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.

justrhysism avatar Feb 12 '16 11:02 justrhysism

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?

francisfeng avatar Feb 22 '16 02:02 francisfeng

same issue with nvm

hanai avatar Mar 18 '16 09:03 hanai

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

qiaosangning avatar Apr 14 '16 05:04 qiaosangning