projects
/
webi-installers
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bugfixes
[webi-installers/.git]
/
node
/
install.bash
diff --git
a/node/install.bash
b/node/install.bash
index 6fd685279fb253b376bd55a6084247765305cf93..ab56e308d19a45b2bfc47fed90f53a6e97c0e1f6 100644
(file)
--- a/
node/install.bash
+++ b/
node/install.bash
@@
-14,6
+14,8
@@
# > Hello, World!
# ```
#
# > Hello, World!
# ```
#
+# <br/>
+#
# ### A Simple Web Server
#
# `server.js`:
# ### A Simple Web Server
#
# `server.js`:
@@
-28,6
+30,8
@@
# });
# ```
#
# });
# ```
#
+# <br/>
+#
# ```bash
# node server.js
# ```
# ```bash
# node server.js
# ```
@@
-41,6
+45,8
@@
# npm install --save express
# ```
#
# npm install --save express
# ```
#
+# <br/>
+#
# `app.js`:
#
# ```js
# `app.js`:
#
# ```js
@@
-56,6
+62,8
@@
# module.exports = app;</code></pre>
# ```
#
# module.exports = app;</code></pre>
# ```
#
+# <br/>
+#
# `server.js`:
#
# ```js
# `server.js`:
#
# ```js
@@
-69,6
+77,8
@@
# });
# ```
#
# });
# ```
#
+# <br/>
+#
# ```bash
# npm start
# ```
# ```bash
# npm start
# ```
@@
-93,7
+103,7
@@
update_node_home() {
webi_path_add "$common_node_home/bin"
}
webi_path_add "$common_node_home/bin"
}
-if [ -x "$new_
go_home/bin/go
" ]; then
+if [ -x "$new_
node_home/bin/node
" ]; then
update_node_home
exit 0
fi
update_node_home
exit 0
fi