iMarket Digital Properties

0 %
iMarket Digital Properties Ltd
Design · Develop · Monetize · Support
  • Location:
    United Kingdom
  • City:
    London
  • Service Area:
    Global
Business Systems
Business Services
24/7 Support
Websites
Web Applications
E-commerce Solutions
Digital Platforms
Products & Services
Public & Private Networks

How To Install Tiddlywiki On Node.js

January 4, 2018
http://tiddlywiki.com/static/Installing%2520TiddlyWiki%2520on%2520Node.js.htmlhttp://tiddlywiki.com/static/Node.js.htmlhttps://www.npmjs.com/package/tiddlywiki

1. Install Node.js

$ sudo apt-get install nodejs

2. Install Tiddlywiki

$ sudo npm install -g tiddlywiki

ERRORS & SOLUTIONS: when using the command above, if you get an error similar to “sudo: npm: command not found” then install npm with the code below and then install Tiddlywiki again (npm is supposed to be installed with nodejs but in my case it wasn’t): https://stackoverflow.com/questions/31472755/sudo-npm-command-not-found
$ sudo apt-get install npm
then to manually create a symbolic link from nodejs to node, http://tiddlywiki.com/static/Installing%2520TiddlyWiki%2520on%2520Node.js.html
$ sudo ln -s /usr/bin/nodejs /usr/bin/node

After installing Tiddlywiki, you should see a line of code similar to below with the current version:
/usr/local/bin/tiddlywiki -> /usr/local/lib/node_modules/tiddlywiki/tiddlywiki.js
/usr/local/lib
└── [email protected]
You can also check the Tiddlywiki version later like this:
$ tiddlywiki --version

3. Create a folder for a new wiki that includes server-related components

$ tiddlywiki mynewwiki --init server
the output will look something like:
Copied edition 'server' to mynewwiki

4. Start Tiddlywiki

$ tiddlywiki mynewwiki --server
Visit http://127.0.0.1:8080/ in your browser and you should be able to create and edit tiddlersOptionally, make an offline copy:click the save changes button in the sidebar, OR
$ tiddlywiki --build index

Upgrading Tiddlywiki on Node.js

$ sudo npm update -g tiddlywiki

AS OF LATEST UPDATE: CAN’T GET TIDDLYWIKI TO DISPLAY USING HTTP:127.0.0.1:8080 OR HTTP:127.0.0.1

Posted in TutorialsTags:
1 Comment
  • Aaron

    This worked for me. Mostly. The –server is now –listen. I didn’t need to create the symbolic link. I’m running it on a raspberry pi and it’s working pretty good. Much appreciated.

    11:00 pm March 2, 2022 Reply
Write a comment