mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-08-19 03:56:16 +00:00
bugfixes
This commit is contained in:
+11
-1
@@ -14,6 +14,8 @@
|
||||
# > Hello, World!
|
||||
# ```
|
||||
#
|
||||
# <br/>
|
||||
#
|
||||
# ### A Simple Web Server
|
||||
#
|
||||
# `server.js`:
|
||||
@@ -28,6 +30,8 @@
|
||||
# });
|
||||
# ```
|
||||
#
|
||||
# <br/>
|
||||
#
|
||||
# ```bash
|
||||
# node server.js
|
||||
# ```
|
||||
@@ -41,6 +45,8 @@
|
||||
# npm install --save express
|
||||
# ```
|
||||
#
|
||||
# <br/>
|
||||
#
|
||||
# `app.js`:
|
||||
#
|
||||
# ```js
|
||||
@@ -56,6 +62,8 @@
|
||||
# module.exports = app;</code></pre>
|
||||
# ```
|
||||
#
|
||||
# <br/>
|
||||
#
|
||||
# `server.js`:
|
||||
#
|
||||
# ```js
|
||||
@@ -69,6 +77,8 @@
|
||||
# });
|
||||
# ```
|
||||
#
|
||||
# <br/>
|
||||
#
|
||||
# ```bash
|
||||
# npm start
|
||||
# ```
|
||||
@@ -93,7 +103,7 @@ update_node_home() {
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user