Skip to content

version 4.8.8 with gradle 7.3 packageJsonFile issue #59

@AlanKang98

Description

@AlanKang98

Hi, I met this problem all the time

  • What went wrong:
    A problem was found with the configuration of task ':npmInstall' (type 'NpmInstallTask').

    • In plugin 'com.github.gradle.node.NodePlugin' type 'com.github.gradle.node.npm.task.NpmInstallTask' property 'packageJsonFile' doesn't have a configured value.

      Reason: This property isn't marked as optional and no value has been configured.

      Possible solutions:

      1. Assign a value to 'packageJsonFile'.
      2. Mark property 'packageJsonFile' as optional.

      Please refer to https://docs.gradle.org/7.3/userguide/validation_problems.html#value_not_set for more details about this problem.

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.

It seem like some configuration delete the packageJsonFile when npm installing.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions