srs / gradle-node-plugin

Gradle plugin for integrating NodeJS in your build. :rocket:
Apache License 2.0
866 stars 211 forks source link

nodeModulesDir property is ignored #300

Open donalmurtagh opened 6 years ago

donalmurtagh commented 6 years ago

I would like my NPM dependencies to be installed in /foo instead of the default /node_modules. I added the following:

node {
    nodeModulesDir = file("${project.projectDir}/foo")
}

But when I run gradle npmInstall, the packages are still installed in /node_modules. I'm using version 1.2.0 of the com.moowork.node plugin.

mikeholler commented 5 years ago

I also have this problem. Looks like there hasn't been movement on it in a while... Anyone here?

deepy commented 5 years ago

Are you using the latest version?

We have a community fork at https://github.com/node-gradle/gradle-node-plugin but iirc a project at work was using that successfully before switching to the fork

mikeholler commented 5 years ago

I'm on 1.3.1 which as far as I can tell is the newest version? Nice info about the fork, this project has been dead for a little bit.