vue not found in docker container

I am trying to run vue/cli in a docker container.
I started the container went to cli of the container through docker exec -it command and entered the command npm install @vue/cli. Now, when I see the package.json file of the container, I see the package installed but when I try to create a project with the command vue create <project-name> it shows vue command not found.

Unable to deploy the Docker Image of Laravel application on Heroku

I started to learn the Docker. I am a complete beginner to Docker. Now, what I am doing is trying to deploy a Docker image of Laravel application onto the Heroku. I have installed a Laravel project. My Laravel project has only one page, a welcome page showing a message. That’s it. I am just trying to test Docker. I have created a Docker image for my Laravel project and successfully run it on my laptop as follow.