node-gradle / node-gradle/gradle-node-plugin

npmSetup args property immutable

Open
#208 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Groovy
Stars
677
Forks
120
PR merge metrics
No merged PRs in 30d

Description

When I try to add registry parameter for npmSetup Task according to FAQ:

tasks.npmSetup {
	doFirst {
		args.addAll(['--registry', 'http://myregistry.npm.com'])
	}
}

I get an error running npmSetup:

Execution failed for task ':xxx:npmSetup'.
> The value for task ':xxx:npmSetup' property 'args' is final and cannot be changed any further.

plugin version: 3.1.1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the npmSetup configuration from the issue with plugin version 3.1.1, then inspect the npmSetup entry point and how its args property is finalized. Done means registry arguments can be configured without the final-property error and the behavior is covered by the relevant test, if one is located.

Written by the indexing model from the issue text.

Assessment

Tech stack
groovy, nodejs
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.