Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ask to make an issue if there is an error #174

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ if [ "x$0" = "xsh" ]; then
(exit 0)
else
rm npm-install-$$.sh
echo "Failed to download script" >&2
echo "Failed to download script. Whenever you see an error like this please make an issue on the Github page for npm" >&2
exit $ret
fi
sh npm-install-$$.sh
Expand All @@ -43,7 +43,7 @@ if [ "x$npm_debug" = "x" ]; then
(exit 0)
else
echo "Running in debug mode."
echo "Note that this requires bash or zsh."
echo "Note that this requires bash or zsh. Whenever you see an error like this please make an issue on the Github page for npm"
set -o xtrace
set -o pipefail
npm_config_loglevel="verbose"
Expand All @@ -65,7 +65,7 @@ else
echo "Install node first, and then try again." >&2
echo "" >&2
echo "Maybe node is installed, but not in the PATH?" >&2
echo "Note that running as sudo can change envs." >&2
echo "Note that running as sudo can change envs. Whenever you see an error like this please make an issue on the Github page for npm" >&2
echo ""
echo "PATH=$PATH" >&2
exit $ret
Expand All @@ -80,7 +80,7 @@ TMP="${TMP}/npm.$$"
rm -rf "$TMP" || true
mkdir "$TMP"
if [ $? -ne 0 ]; then
echo "failed to mkdir $TMP" >&2
echo "failed to mkdir $TMP. Whenever you see an error like this please make an issue on the Github page for npm" >&2
exit 1
fi

Expand All @@ -106,7 +106,7 @@ fi
if [ $ret -eq 0 ]; then
(exit 0)
else
echo "No suitable tar program found."
echo "No suitable tar program found. Whenever you see an error like this please make an issue on the Github page for npm"
exit 1
fi

Expand Down Expand Up @@ -157,7 +157,7 @@ if [ $ret -ne 0 ]; then
echo "You need node to run this program." >&2
echo "node --version reports: $node_version" >&2
echo "with exit code = $ret" >&2
echo "Please install node before continuing." >&2
echo "Please install node before continuing. Whenever you see an error like this please make an issue on the Github page for npm" >&2
exit $ret
fi

Expand All @@ -168,7 +168,7 @@ if [ -z "$t" ]; then
case $node_version in
0.[01234567].* | v0.[01234567].*)
echo "You are using an outdated and unsupported version of" >&2
echo "node ($node_version). Please update node and try again." >&2
echo "node ($node_version). Please update node and try again. Whenever you see an error like this please make an issue on the Github page for npm" >&2
exit 99
;;
*)
Expand Down Expand Up @@ -197,7 +197,7 @@ if [ "x$url" = "x" ]; then
fi
fi
if [ $ret -ne 0 ]; then
echo "Failed to get tarball url for npm/$t" >&2
echo "Failed to get tarball url for npm/$t. Whenever you see an error like this please make an issue on the Github page for npm" >&2
exit $ret
fi

Expand Down