I am not able to build angular (angular 6).This happened after I upgraded node modules. I get this error:
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.
This are the things I tried:
- Removed folders from .bin
- Removed .bin folder
- Removed node_modules compeltely and reinstalled as mentioned in this link [How do I completely uninstall Node.js, and reinstall from beginning (Mac OS X)
- Removed symbolic links as mentioned in this link:
[https://github.com/srs/gradle-node-plugin/issues/202][2] - Cleared npm cache (npm clean cache)
- Cleared .gradle (includes gradle nodejs cache)
- Did gradlew clean build re deploy
- Did brew uninstall node, brew install node, brew unlink node && link node
Here are the nodejs
and npm versions
I use
npm --version
6.11.3
node --version
v12.11.1
I am working on MacOS mojave version 10.14.5. Please Please let me know how to fix this issue.