[Vuejs]-Cannot start npm serve on MacOS, IntelliJ ultimate on vuejs project

2👍

The issue is that node is not on your $PATH; on MacOSX the environment variables differ between GUI applications and within the terminal. Terminal environment is only available to applications started from terminal.
To solve this problem, IDEA tries to load terminal environment by executing some scripts on startup, but it seems that it can’t retrieve all needed stuff in your case – thus the issue. As a workaround, you can try starting IDEA from terminal.

Some links you may find useful: http://apple.stackexchange.com/questions/106355/setting-the-system-wide-path-environment-variable-in-mavericks, http://apple.stackexchange.com/questions/51677/how-to-set-path-for-finder-launched-applications.. The problem is that the way to define system-wide environment variables on Mac changes from one version to another (even minor system updates may break your environment)

0👍

As lena answered, it did help. Thank you for your help!
Starting it from the terminal does the job.

In my case I build a starter script

#! /bin/bash
/Applications/IntelliJ\ IDEA.app/Contents/MacOS/idea &

I am running the ultimate version of IntelliJ. The CE version does have another path to start!

The next two nice things to have would be

  • to have the opened terminal window automatically closed
  • link it with a proper icon placed on the desktop.

If anyone can help, go ahead!-)

Leave a comment