npmSetup FAILED - Couldn't follow symbolic link

时间:2019-01-09 22:35:18

标签: docker-container

I'm trying to run an application in a Docker container on a linux oracle VM. After it tries to execute the following line, it outputs that error.

Download https://nodejs.org/dist/v10.9.0/node-v10.9.0-linux-x64.tar.gz

> Task :nodeSetup
> Task :npmSetup FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Failed to capture snapshot of output files for task ':npmSetup' property 'npmDir' during up-to-date check.
> Could not list contents of '/app/comsm0010/app/.gradle/npm/npm-v6.2.0/bin/npm'. Couldn't follow symbolic link.

* Try:
Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Exception is:
org.gradle.api.UncheckedIOException: Failed to capture snapshot of output files for task ':npmSetup' property 'npmDir' during up-to-date check.
    at org.gradle.api.internal.changedetection.state.CacheBackedTaskHistoryRepository.snapshotTaskFiles(CacheBackedTaskHistoryRepository.java:298)
    at org.gradle.api.internal.changedetection.state.CacheBackedTaskHistoryRepository.createExecution(CacheBackedTaskHistoryRepository.java:149)
    at org.gradle.api.internal.changedetection.state.CacheBackedTaskHistoryRepository.access$100(CacheBackedTaskHistoryRepository.java:60)
    at org.gradle.api.internal.changedetection.state.CacheBackedTaskHistoryRepository$1.getCurrentExecution(CacheBackedTaskHistoryRepository.java:107)
    at org.gradle.api.internal.changedetection.changes.DefaultTaskArtifactStateRepository$TaskArtifactStateImpl.getStates(DefaultTaskArtifactStateRepository.java:206)
    at org.gradle.api.internal.changedetection.changes.DefaultTaskArtifactStateRepository$TaskArtifactStateImpl.isUpToDate(DefaultTaskArtifactStateRepository.java:95)...

Thank you in advance for your help,

Panagiotis

0 个答案:

没有答案