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
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
After installing Tiddlywiki, you should see a line of code similar to below with the current version:
1. Install Node.js
$ sudo apt-get install nodejs2. Install Tiddlywiki
$ sudo npm install -g tiddlywikiERRORS & 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 npmthen 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/nodeAfter 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 --version3. Create a folder for a new wiki that includes server-related components
$ tiddlywiki mynewwiki --init serverthe output will look something like:Copied edition 'server' to mynewwiki4. Start Tiddlywiki
$ tiddlywiki mynewwiki --serverVisit 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 indexUpgrading Tiddlywiki on Node.js
$ sudo npm update -g tiddlywikiAS OF LATEST UPDATE: CAN’T GET TIDDLYWIKI TO DISPLAY USING HTTP:127.0.0.1:8080 OR HTTP:127.0.0.1
Posted in Tutorials
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.