andersonba / puppeteer-assets

Measuring and monitor assets metrics using Puppeteer and Prometheus
MIT License
28 stars 4 forks source link

nodemon: not found #10

Open ghost opened 3 years ago

ghost commented 3 years ago

Good afternoon, First of all, thanks for the puppeteer-assets! this is exactly what I am looking for :-)

I am getting the error at the bottom when I do docker-compose up. it works for me when i simply run yarn dev directly. turned out I have to update script section in package.json: From "dev": "nodemon index" to "dev": "npx nodemon index"

I am new to nodejs development so I am just wondering if I missed anything!

Attaching to prometheus_server_1
server_1  | yarn run v1.22.4
server_1  | warning ../../package.json: No license field
server_1  | $ nodemon index
server_1  | /bin/sh: 1: nodemon: not found
server_1  | error Command failed with exit code 127.
server_1  | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
prometheus_server_1 exited with code 127
andersonba commented 3 years ago

Hi! Glad you found what you were looking for. Thanks for your feedback 👍

So, weird.. it's ok to me... 🤔

image

Please, try the steps below:

rm -rf node_modules
docker-compose down -v
docker-compose build --no-cache
docker-compose up