AWS Codepipeline LAB deployment stage is failed(Having successful status of source and Build stage result)

I am trying to implement the LAB in course - AWS CodePipeline (CI/CD Pipeline). In last lab ( Lab 3 : Create 4 Stage Pipeline) the deployment phase is failing with an error of “nosudo: npm: command not found” for which I tried to install npm and node manually on instance but for that to SSH the instance I dont have the permissions. I have attached the screenshots of the events of Code deploy.


This image consist the events of codedeploy