I\'ve provisioned a default clean node.js app via Elastic Beanstalk, and have a node.js script trying to run npm install inside the project directory (/var/ap
npm install
/var/ap
I have had this problem in past and in my case cleaning the cache fixed my issue. Please try this
npm cache clean
Hope it helps.