1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-09 11:29:58 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers/nodejs/Installing TiddlyWiki on Node.js.tid

32 lines
1.7 KiB
Plaintext
Raw Normal View History

2013-12-19 10:08:14 +00:00
created: 20131219100608529
modified: 20160520090217678
2014-09-12 15:05:37 +00:00
tags: [[TiddlyWiki on Node.js]]
2013-12-19 10:08:14 +00:00
title: Installing TiddlyWiki on Node.js
type: text/vnd.tiddlywiki
# Install [[Node.js]]
#* either from your favourite package manager: typically `apt-get install nodejs` on Debian/Ubuntu Linux or Termux for Android, or `brew install node` on a Mac
#* or directly from 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)
2013-12-19 10:08:14 +00:00
# Check TiddlyWiki is installed by typing:
#> `tiddlywiki --version`
2015-03-25 22:15:51 +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
## `tiddlywiki mynewwiki --server` 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
# Optionally, make an offline copy:
#* click the {{$:/core/images/save-button}} ''save changes'' button in the sidebar, ''OR''
#* `tiddlywiki --build index`
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.
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]]
Example Debian v8.0: `sudo ln -s /usr/bin/nodejs /usr/bin/node`