You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using this package in order to solve a problem with Node.js --inspect in the official alpine docker image, I receive that error message.
I solved this problem using the following command: netstat -lnpt | awk '$4 ~ /:PORT$/ {sub(/\/.*/, "", $7); print $7}'
but i don't know if can be used in other circumstances.
EDIT: another solution compatible with npm/yarn scripts is: netstat -lnpt | awk '$4 ~ /:PORT$/ {print $7}' | cut -d'/' -f1
so can be used like:
Using this package in order to solve a problem with Node.js
--inspect
in the official alpine docker image, I receive that error message.I solved this problem using the following command:
netstat -lnpt | awk '$4 ~ /:PORT$/ {sub(/\/.*/, "", $7); print $7}'
but i don't know if can be used in other circumstances.
EDIT: another solution compatible with npm/yarn scripts is:
netstat -lnpt | awk '$4 ~ /:PORT$/ {print $7}' | cut -d'/' -f1
so can be used like:
The text was updated successfully, but these errors were encountered: