TiddlyWiki Prerelease on Node.JS: Installing Issue

As official documents say:

  1. I downloaded TW 5.3.2 prerelease
  2. Unzipped it in C:\TiddlyWiki on Windows 11
  3. Opened the Terminal at C:\TiddlyWiki
  4. Run npm link and it linked successfully
  5. In another Terminal window I entered tiddlywiki --version and I got the below error
tiddlywiki : The term 'tiddlywiki' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ tiddlywiki --version
+ ~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (tiddlywiki:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
1 Like

Did you close the terminal after performing the npm link? – I usually do close all terminals if I do mess with global settings or environment variables.

Yes, I closed all open Terminal windows. I checked the C:\Users\{USERNAME}\AppData\Roaming\npmand I see

image

So the node linkseems worked correctly, but I get the above error!

How / where did you download the preview version from?

I downloaded from GitHub repo.

Solved

  • I added C:\Users\{USERNAME}\AppData\Roaming\npm to Windows path and it start working!
  • But this is the first time I see such error. I expected npm to use its config file and no need to add above folder to Windows path, but this time it did not work!!

And is this path part of your β€œPath” environment variable?

Screenshot

1 Like

Thank you Mario! The problem was with path!