node.js non-global install

80 views
Skip to first unread message

Kevin Kleinfelter

unread,
Mar 26, 2018, 9:15:30 PM3/26/18
to TiddlyWiki
Whenever I see instructions to run TW under node, they look like:
  • npm install -g tiddlywiki
Must TW be installed globally?  I'd like to run two completely independent TW.
TIA

Riz

unread,
Mar 26, 2018, 10:14:31 PM3/26/18
to TiddlyWiki
Not at all. You can install TW5 locally. Just follow the command pattern

node /path/to/tiddlywiki.js --server 8080

where you need to provide the path, port number and so on.

Jed Carty

unread,
Mar 27, 2018, 3:31:19 AM3/27/18
to TiddlyWiki
As Riz said you don't have to install it globally, but it is also worth mentioning that just because you install it globally doesn't mean you can't run it multiple times on different ports while it is installed globally.

The biggest reasons to not install it globally are if you want to run different versions or don't have admin privileges or just don't like things installed globally.

You can serve as many tiddlywikis as you want with the same global install using

tiddlywiki /path/to/wiki --server port

where you change /path/to/wiki and port each time.
Reply all
Reply to author
Forward
0 new messages