kotlin-frontend-plugin icon indicating copy to clipboard operation
kotlin-frontend-plugin copied to clipboard

No executable npm found, No executable node found

Open team55 opened this issue 8 years ago • 5 comments

Mac OS X Sierra IntelliJ IDEA 2016.3 NodeJS 7.7.3 installed in usr\local\bin

на windows все ок. где подкрутить на MAC?

team55 avatar Mar 19 '17 17:03 team55

is /usr/local/bin in the PATH on Mac? do you run gradle from command line or from IDEA? I remember there was some difference between UI apps and command-line

cy6erGn0m avatar Apr 03 '17 10:04 cy6erGn0m

Got the same thing when running from inside IDEA on Ubuntu 16.04.2.

Seems to run fine on the command line though.

ntsim avatar Apr 21 '17 12:04 ntsim

Same problem here. It works in command line but not in IDEA.

danfma avatar Apr 23 '17 06:04 danfma

So, Homebrew on OS X installs node into /usr/local/bin, but, the default PATH for UI applications not launched from the Terminal is /usr/bin:/bin:/usr/sbin:/sbin. Thus, IntelliJ probably won't find anything installed via Homebrew or Terminal.

I've found that running the launchctl config user path command works well, e.g., sudo launchctl config user path $PATH sets the user path for UI applications just like what I have in the Terminal at the moment. You just have to run it and reboot.

tristanjuricek avatar May 17 '17 21:05 tristanjuricek

Now I see it is a known issue. This should be fixed in IDEA 2017.2 and Gradle 3.5

https://youtrack.jetbrains.com/issue/IDEA-115426

cy6erGn0m avatar May 22 '17 09:05 cy6erGn0m