can debug using shell script
cat > ~/debug-shell.sh <<'EOF'
echo "===== SHELL ====="
echo "$SHELL"
echo "$0"
echo
echo "===== PATH ====="
echo "$PATH"
echo
echo "===== WHICH ====="
which sudo
which node
which npm
echo
echo "===== TYPE ====="
type sudo
type node
type npm
echo
echo "===== ENV ====="
env | grep PATH
EOF
chmod +x ~/debug-shell.sh

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home