mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-15 14:24:51 +00:00
1e221ddbdb
* Styles and templates for visual changes to Saving methods listing * Color coding saver methods according to delivery * Changes to tags and few tiddlers - The tag InternetExplorer has been changed to [[Internet Explorer]] - A tag for Edge is added - Reclassified TiddlyServer as DIY instead of App The existing criteriion for classification is unclear. Here is my reasoning for the change. An app is something user can simply install and run. Like TiddlyDesktop or Tiddloid. A DIY is something user has to install additional runtimes for. Thus Nodejs is a DIY. In the same vein, TiddlyServer is a DIY * Adding Twexe * Reversing accidental changes to StoryList * Restyling Download button and Card Size * Removing "Read more" links Entire card is now clickable To give visual clues regarding the clickability of card, title will change color to blue on card hover * Removing margins from elements under link and adding padding instead. Why this change? Margins are not "clickable". Having margins under <a> tag means there are minute dead areas where the mouse pointer will change shape, is not clickable and degrade user experience. Paddings are "clickable"
41 lines
2.0 KiB
Plaintext
41 lines
2.0 KiB
Plaintext
caption: Node.js
|
|
color: #F06292
|
|
created: 20131219100608529
|
|
delivery: DIY
|
|
description: Flexible hosting on your own machine or in the cloud
|
|
method: sync
|
|
modified: 20200507110222866
|
|
tags: Saving [[TiddlyWiki on Node.js]] Windows Mac Linux
|
|
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|Serving TW5 from Android]], or `brew install node` on a Mac
|
|
#* or directly from http://nodejs.org
|
|
# Open a command line terminal and type:
|
|
#> `npm install -g tiddlywiki`
|
|
#> If it fails with an error you may need to re-run the command as an administrator:
|
|
#> `sudo npm install -g tiddlywiki` (Mac/Linux)
|
|
# Check TiddlyWiki is installed by typing:
|
|
#> `tiddlywiki --version`
|
|
# In response, you should see TiddlyWiki report its current version (eg "<<version>>"; you may also see other debugging information reported)
|
|
# Try it out:
|
|
## `tiddlywiki mynewwiki --init server` to create a folder for a new wiki that includes server-related components
|
|
## `tiddlywiki mynewwiki --listen` to start TiddlyWiki
|
|
## Visit http://127.0.0.1:8080/ in your browser
|
|
## Try editing and creating tiddlers
|
|
# Optionally, make an offline copy:
|
|
#* click the <<.icon $:/core/images/save-button>> ''save changes'' button in the sidebar, ''OR''
|
|
#* `tiddlywiki mynewwiki --build index`
|
|
|
|
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`
|
|
|
|
You can also install prior versions like this:
|
|
|
|
> npm install -g tiddlywiki@5.1.13
|
|
|