2017-11-13 14:00:01 +00:00
caption: Node.js
2020-06-14 10:48:13 +00:00
color: #F06292
2013-12-19 10:08:14 +00:00
created: 20131219100608529
2017-11-13 14:00:01 +00:00
delivery: DIY
description: Flexible hosting on your own machine or in the cloud
method: sync
2022-12-04 16:06:37 +00:00
modified: 20221115230831173
2017-11-13 14:00:01 +00:00
tags: Saving [[TiddlyWiki on Node.js]] Windows Mac Linux
2013-12-19 10:08:14 +00:00
title: Installing TiddlyWiki on Node.js
type: text/vnd.tiddlywiki
2016-04-30 20:47:09 +00:00
# Install [[Node.js]]
2021-10-04 08:48:44 +00:00
#* Linux:
#*> //Debian/Ubuntu//:<br/>`apt install nodejs`<br/>May need to be followed up by:<br/>`apt install npm`
2022-11-14 11:52:38 +00:00
#*> //Arch Linux//<br/>`yay -S tiddlywiki` <br/>(installs node and tiddlywiki)
2021-10-04 08:48:44 +00:00
#* Mac
#*> `brew install node`
#* Android
#*> [[Termux for Android|Serving TW5 from Android]]
#* Other
#*> See http://nodejs.org
2013-12-19 10:08:14 +00:00
# Open a command line terminal and type:
2013-12-31 11:36:51 +00:00
#> `npm install -g tiddlywiki`
2013-12-19 16:45:13 +00:00
#> If it fails with an error you may need to re-run the command as an administrator:
2014-01-02 21:47:01 +00:00
#> `sudo npm install -g tiddlywiki` (Mac/Linux)
2022-06-23 07:48:15 +00:00
# Ensure ~TiddlyWiki is installed by typing:
2013-12-19 10:08:14 +00:00
#> `tiddlywiki --version`
2022-06-23 07:48:15 +00:00
#* In response, you should see TiddlyWiki report its current version (eg "<<version>>". You may also see other debugging information reported.)
2013-12-19 10:08:14 +00:00
# Try it out:
2014-02-24 14:09:29 +00:00
## `tiddlywiki mynewwiki --init server` to create a folder for a new wiki that includes server-related components
2018-07-18 15:54:43 +00:00
## `tiddlywiki mynewwiki --listen` to start TiddlyWiki
2014-01-02 20:07:05 +00:00
## Visit http://127.0.0.1:8080/ in your browser
2013-12-19 10:08:14 +00:00
## Try editing and creating tiddlers
2016-04-03 19:22:11 +00:00
# Optionally, make an offline copy:
2019-10-13 14:35:36 +00:00
#* click the <<.icon $:/core/images/save-button>> ''save changes'' button in the sidebar, ''OR''
2017-09-16 14:04:27 +00:00
#* `tiddlywiki mynewwiki --build index`
2016-04-03 19:22:11 +00:00
2013-12-19 10:08:14 +00:00
The `-g` flag causes TiddlyWiki to be installed globally. Without it, TiddlyWiki will only be available in the directory where you installed it.
2015-04-28 02:31:18 +00:00
2022-06-23 07:48:15 +00:00
<<.warning "If you are using Debian or Debian-based Linux and you are receiving a `node: command not found` error though node.js package is installed, you may need to create a symbolic link between `nodejs` and `node`. Consult your distro's manual and `whereis` to correctly create a link. See github [[issue 1434|http://github.com/Jermolene/TiddlyWiki5/issues/1434]]. <br><br>Example Debian v8.0: `sudo ln -s /usr/bin/nodejs /usr/bin/node`">>
<br>
<<.tip "You can also install prior versions like this: <br><code> npm install -g tiddlywiki@5.1.13</code>">>