Elastic Beanstalk npm failing

I got similar kind of error as fallows enter image description here

When I looked at more details section I found this ,where it was an error in the bcrypt library enter image description here

So I removed that library and installed bcryptjs library and deployed it again ,then it was successful deployed. So this kind of errors may appear when there are deprecated libraries and not supportive libraries .


If anyone else comes across this, my problem was in my .gitignore I had node_modules rather than node_modules/ and the folder was getting tracked and deployed. Removing the node_modules folder from the deployment solved the issue.