Comments (2)
make sure nodejs container is running, then get the name or id of nodejs container with following command:
docker ps
then use this command to run command inside container:
docker exec -it <name or id> node -v
or docker exec -t <name or id> node -v
example: docker exec -it 89ycxxxxa node -v
from docker-compose-laravel.
Even better is that you can use the docker-compose
alias and pass in the service name, so you don't have to get the container id!
docker-compose exec npm node -v
from docker-compose-laravel.
Related Issues (20)
- [Question] Deploy on Heroku HOT 1
- Not working on Ubuntu v22.04 + Docker Desktop v4.10.1 due to permission issues HOT 1
- extension=mongodb.so HOT 1
- Vite HMR HOT 2
- Not relevant with Laravel 9, need an update. HOT 1
- To run artisan on windows 10, version 3.9 docker, I am getting the below error HOT 1
- Connection refused to MariaDB HOT 4
- Linux permisson issue HOT 1
- PHP Zip plugin HOT 3
- Cannot start service app HOT 2
- Error: After running docker-compose run --rm composer update HOT 2
- please add let's scripts with certbot
- Horizon don't work
- Please add the conventional php extensions and their dependencies HOT 2
- Could not delete /var/www/html/. error HOT 1
- Redis: Connection Exception
- Laravel 10 HOT 1
- It worked but too slow when run on Docker Desktop Win11.
- Vite Not Working - needs server.hmr.hosts in vite.config.js HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-compose-laravel.