gradle-node-plugin icon indicating copy to clipboard operation
gradle-node-plugin copied to clipboard

nodeModulesDir property is ignored

Open donalmurtagh opened this issue 7 years ago • 3 comments

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.

donalmurtagh avatar Jun 12 '18 12:06 donalmurtagh

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

mikeholler avatar Sep 11 '19 16:09 mikeholler

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

deepy avatar Sep 11 '19 19:09 deepy

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.

mikeholler avatar Sep 11 '19 21:09 mikeholler