I am facing difficulties in building Angular (version 6) after upgrading node modules. The error message that I encounter is:
Failed to capture fingerprint of output files for task ':pbr-angular-common:setupAngular' property '$1' during up-to-date check.
Could not list contents of '/Users/xxx/git/xxx/angular-common/node_modules/@angular-devkit/build-angular/node_modules/.bin/node-gyp'. Couldn't follow symbolic link.
Here are the steps I have taken to resolve the issue:
- Removed folders from .bin directory
- Deleted .bin folder entirely
- Uninstalled and reinstalled node_modules as per instructions in this link: [How do I completely uninstall Node.js, and reinstall from beginning (Mac OS X)
- Removed symbolic links as suggested in this link: [https://github.com/srs/gradle-node-plugin/issues/202][2]
- Cleared npm cache using 'npm clean cache'
- Emptied .gradle directory (including gradle nodejs cache)
- Executed 'gradlew clean build re deploy'
- Performed 'brew uninstall node', 'brew install node', 'brew unlink node && link node'
Below are the versions of nodejs
and npm
that I am currently running:
npm --version
6.11.3
node --version
v12.11.1
I am using MacOS Mojave version 10.14.5. Kindly provide guidance on how to resolve this issue.