Node.js install without global option

34 views
Skip to first unread message

Andy Pastuszak

unread,
Apr 6, 2021, 5:25:47 PM4/6/21
to TiddlyWiki

I'm on a pretty locked down work computer.  I have Node.js installed, and I am able to install tiddlywiki using npm install tiddlywiki.  But I can't use the -g option.  If I do, I get a bunch of errors.  Is there any way to run the install if you can't install globally?

PMario

unread,
Apr 7, 2021, 6:08:21 AM4/7/21
to TiddlyWiki
Hi,
May be this may help. https://nodejs.org/api/modules.html#modules_loading_from_the_global_folders ... There is some info about the NODE_PATH .. which shouldn't be used for default settings. But it may help in your case.

You may be able to install tiddlywiki with the default command and set the path environment veriable.

... Just a guess.
-mario

Andy Pastuszak

unread,
Apr 7, 2021, 8:19:36 AM4/7/21
to TiddlyWiki
I figured out my issue.  I uninstalled Tiddlywiki using npm. I then deleted all the folders it created and got it to reinstall with the -g option.

After that, I need to fix my path, because the installer work gave me didn't set the path properly.  I had to add %USERPROFILE%\AppData\Roaming\npm to my path and then everytihng worked.
Reply all
Reply to author
Forward
0 new messages