1

I'm running a project in intellij that uses gulp. After running the debug I get this error.

    | Error Error executing script RunApp: java.lang.RuntimeException: Problem executing execUiBuild.
standard out: 'Installing npm packages and running gulp.
gulp is not on your path. Make sure it is installed.

Anyone know how to fix this. I have gulp installed on my machine already.

me-me
  • 5,139
  • 13
  • 50
  • 91

1 Answers1

0

In Intellij you can add Build/Run Configurations.

Depending on where you have Node installed and Gulp the paths will be different but here is where you can enter it for the project.

enter image description here

You can get to this screen by choosing "Run" -> "Edit Configurations"

If you haven't already setup a gulp task you can add one by choosing the + on the very top left of the window.

You can get the path to the installed version of node by doing the following command in a terminal:

which node

if you are using nvm it should return something like:

/Users/YOURUSERNAME/.nvm/v0.12.0/bin/node

Gulp should be in the /lib/node_modules/ folder of node that you have installed:

/Users/YOURUSERNAME/.nvm/v0.12.0/lib/node_modules/gulp

Those are the two paths that you need to get it up and running.

CDoug
  • 76
  • 1
  • 7
  • You can also setup a default for all your gulp tasks so that the **Node Interpreter** and **Gulp Package** paths are setup for each new configuration that you setup. – CDoug Apr 13 '16 at 19:18