node-gradle / node-gradle/gradle-node-plugin
nodeSetup: Couldn't follow symbolic link.
Nobody has claimed this yet.
- Dominant language
- Groovy
- Stars
- 677
- Forks
- 120
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
Sometimes the nodeSetup task is failing with the error
'Couldn't follow symbolic link.' on osx.
Cleaning the .gradle directory fixes the issue.
> Task :myproject:nodeSetup FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':magicdraw-oslc-delegated-dialog:nodeSetup'.
> Couldn't follow symbolic link '/Users/thsoft/myproject/.gradle/nodejs/node-v20.11.1-darwin-x64/bin/npx'.
(This is exactly the same problem as https://github.com/srs/gradle-node-plugin/issues/190.)
Unfortunately I can't share my example and I can't reproduce this from a clean state, but I'll try to come up with a minimal example.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the nodeSetup task and compare the reported macOS failure with upstream issue 190. Reproduce the symbolic-link error if possible, checking behavior before and after cleaning .gradle. Done means the task handles the affected link reliably, with a confirmed regression test or a documented reproduction path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- groovy, node.js
- Domain
- build-system, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100