Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No value has been specified for property 'packageJsonFile'. #363

Open
antgustech opened this issue Jan 20, 2020 · 2 comments
Open

No value has been specified for property 'packageJsonFile'. #363

antgustech opened this issue Jan 20, 2020 · 2 comments

Comments

@antgustech
Copy link

I am using Gradle 6 with the following configuration in the build file:

node { version = '12.14.1' npmVersion = '6.13.6' distBaseUrl = 'https://nodejs.org/dist' download = true workDir = file("${project.buildDir}/app") }

When I run gradle npmInstall, it builds for a while but then exits due to:

No value has been specified for property 'packageJsonFile'.

Where do I set this property and what should it be set to?

@deepy
Copy link

deepy commented Jan 30, 2020

There's multiple issues and PRs related to Gradle 6 support e.g. #349

There's also #315 to keep in mind

@injecteer
Copy link

injecteer commented Apr 28, 2020

I got my setup to work, replacing plugin's npmInstall task with the hand-made one:

	task "npm-install"( type:NpmTask ) {
		group = 'node'
		description = 'Runs npm install'
		workingDir = file '...'
		args = [ 'install' ]
	}

Works both for Gradle 4.10 and 6.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants