[{"created":"20131219100608529","text":"# Install [[Node.js]]\n#* Linux: \n#*> //Debian/Ubuntu//:<br/>`apt install nodejs`<br/>May need to be followed up by:<br/>`apt install npm`\n#*> //Arch Linux//<br/>`pacman -S tiddlywiki` <br/>(installs node and tiddlywiki)\n#* Mac\n#*> `brew install node`\n#* Android\n#*> [[Termux for Android|Serving TW5 from Android]]\n#* Other \n#*> See http://nodejs.org\n# Open a command line terminal and type:\n#> `npm install -g tiddlywiki`\n#> If it fails with an error you may need to re-run the command as an administrator:\n#> `sudo npm install -g tiddlywiki` (Mac/Linux)\n# Check TiddlyWiki is installed by typing:\n#> `tiddlywiki --version`\n# In response, you should see TiddlyWiki report its current version (eg \"<<version>>\"; you may also see other debugging information reported)\n# Try it out:\n## `tiddlywiki mynewwiki --init server` to create a folder for a new wiki that includes server-related components\n## `tiddlywiki mynewwiki --listen` to start TiddlyWiki\n## Visit http://127.0.0.1:8080/ in your browser\n## Try editing and creating tiddlers\n# Optionally, make an offline copy:\n#* click the <<.icon $:/core/images/save-button>> ''save changes'' button in the sidebar, ''OR''\n#* `tiddlywiki mynewwiki --build index`\n\nThe `-g` flag causes TiddlyWiki to be installed globally. Without it, TiddlyWiki will only be available in the directory where you installed it.\n\nIf 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]]\n\nExample Debian v8.0: `sudo ln -s /usr/bin/nodejs /usr/bin/node`\n\nYou can also install prior versions like this:\n\n> npm install -g tiddlywiki@5.1.13\n\n","title":"Installing TiddlyWiki on Node.js","caption":"Node.js","color":"#F06292","delivery":"DIY","description":"Flexible hosting on your own machine or in the cloud","method":"sync","modified":"20211003230131941","tags":"Saving [[TiddlyWiki on Node.js]] Windows Mac Linux","type":"text/vnd.tiddlywiki"}]