Can't Make Upgrade From 5.1.21 to 5.2.22 Happen (node.js)

70 views
Skip to first unread message

Kevin Kleinfelter

unread,
May 3, 2020, 1:09:26 PM5/3/20
to TiddlyWiki
I need help debugging why my TW upgrade didn't work.

After I run `npm update -g tiddl...@5.1.22` then `npm show -g tiddlywiki version` reports 5.1.22.  But TiddlyWiki control panel still says 5.1.21, even after I stopped and restarted it.

Kevin Kleinfelter

unread,
May 3, 2020, 1:34:27 PM5/3/20
to TiddlyWiki
  • `node /usr/local/lib/node_modules/tiddlywiki/tiddlywiki.js --version` reports 5.1.21.
  • `npm show tiddlywiki version` reports 5.1.22
  • `find / -name tiddlywiki.js` reports:
    • /usr/local/lib/node_modules/tiddlywiki/tiddlywiki.js
    • /usr/local/lib/node_modules/tiddlywiki/plugins/tiddlywiki/codemirror-mode-x-tiddlywiki/files/mode/tiddlywiki/tiddlywiki.js

Arlen Beiler

unread,
May 3, 2020, 5:12:31 PM5/3/20
to TiddlyWiki
can you run `which tiddlywiki`?

Also, is you current folder a data folder? Meaning is there a tiddlywiki.info file in the folder you are running the tiddlywiki command from? 

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/5dfa53d0-47ca-4adc-a7c4-fd3e6c5d4390%40googlegroups.com.

Kevin Kleinfelter

unread,
May 3, 2020, 7:00:24 PM5/3/20
to tiddl...@googlegroups.com
No output from `which tiddlywiki`.  The only way I can use a "tiddlywiki" command is to first run something like:
`alias tiddlywiki=node /usr/local/lib/node_modules/tiddlywiki/tiddlywiki.js`.  So I usually run it as `node /usr/local/lib/node_modules/tiddlywiki/tiddlywiki.js`

As I mentioned earlier, the only non-plugin tiddlywiki.js is /usr/local/lib/node_modules/tiddlywiki/tiddlywiki.js and that reports 5.1.22.

I think it is clear that the version I HAVE after attempting to upgrade is 5.1.21, and npm is somehow broken and thinks I have 5.1.22.


You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/LKLuEaMB8vk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/CAJ1vdSRr%2BKbW4c5VT-w59N05qa3rGa_98v3mQj%3D35kLemAeAsQ%40mail.gmail.com.

Arlen Beiler

unread,
May 3, 2020, 8:08:20 PM5/3/20
to TiddlyWiki
check if you have any files in the tiddlers folder of your data folder that start with $__core 

If you do, please paste the names here. 

Kevin Kleinfelter

unread,
May 3, 2020, 8:25:34 PM5/3/20
to tiddl...@googlegroups.com

kevin@boxtop3:/data/containers/tiddlywiki/data$ find . -print | grep __core 

./pkb/tiddlers/$__core_images_right-arrow.tid

./pkb/tiddlers/$__core_images_cancel-button.tid

./pkb/tiddlers/$__core_ui_Buttons_more-page-actions.tid

./pkb/tiddlers/$__core_images_new-journal-button.tid

./pkb/tiddlers/$__core_ui_ViewTemplate..tid

./pkb/tiddlers/$__core_images_menu-button.tid

./pkb/tiddlers/$__core_ui_Buttons_cancel-and-close.tid

./pkb/tiddlers/$__core_images_edit-button.tid

./pkb/tiddlers/$__core_images_new-button.tid

./pkb/tiddlers/$__config_ViewToolbarButtons_Visibility_$__core_ui_Buttons_close-others.tid

./pkb/tiddlers/$__core_images_done-button.tid

./pkb/tiddlers/$__core_images_delete-button.tid

./pkb/tiddlers/$__core_images_save-button.tid

./pkb/tiddlers/$__core_images_left-arrow.tid

./pkb/tiddlers/$__config_PageControlButtons_Visibility_$__core_ui_Buttons_advanced-search.tid

./pkb/tiddlers/$__core_images_close-button.tid

./pkb/tiddlers/$__core_images_new-image-button.tid

./pkb/tiddlers/$__core_images_down-arrow.tid

./pkb/tiddlers/$__core_images_up-arrow.tid

./pkb/tiddlers/$__core_ui_Buttons_save-and-close.tid

./pkb/tiddlers/$__core_images_advanced-search-button.tid

./pkb/tiddlers/$__core_images_export-button.tid

./pkb/tiddlers/$__core_images_options-button.tid

./pkb/tiddlers/$__core_ui_ViewTemplate.tid

./dtl/tiddlers/$__core_images_advanced-search-button.tid

./dtl/tiddlers/$__core_images_left-arrow.tid

./dtl/tiddlers/$__config_ViewToolbarButtons_Visibility_$__core_ui_Buttons_close-others.tid

./dtl/tiddlers/$__config_PageControlButtons_Visibility_$__core_ui_Buttons_advanced-search.tid

./dtl/tiddlers/$__core_images_delete-button.tid

./dtl/tiddlers/$__core_images_down-arrow.tid

./dtl/tiddlers/$__core_ui_Buttons_more-page-actions.tid

./dtl/tiddlers/$__core_images_new-image-button.tid

./dtl/tiddlers/$__core_images_new-journal-button.tid

./dtl/tiddlers/$__core_images_save-button.tid

./dtl/tiddlers/$__core_images_cancel-button.tid

./dtl/tiddlers/$__core_images_export-button.tid

./dtl/tiddlers/$__core_images_menu-button.tid

./dtl/tiddlers/$__core_images_up-arrow.tid

./dtl/tiddlers/$__core_images_edit-button.tid

./dtl/tiddlers/$__core_ui_Buttons_save-and-close.tid

./dtl/tiddlers/$__core_ui_ViewTemplate.tid

./dtl/tiddlers/$__core_images_done-button.tid

./dtl/tiddlers/$__core_ui_Buttons_cancel-and-close.tid

./dtl/tiddlers/$__core_images_new-button.tid

./dtl/tiddlers/$__core_images_options-button.tid

./dtl/tiddlers/$__core_images_close-button.tid

./dtl/tiddlers/$__core_images_right-arrow.tid

./dtl/tiddlers/$__core_ui_ViewTemplate..tid


Arlen Beiler

unread,
May 3, 2020, 8:49:24 PM5/3/20
to TiddlyWiki
Are there any other folders in the data folder beside the tiddlers folder?


Arlen Beiler

unread,
May 3, 2020, 8:57:37 PM5/3/20
to TiddlyWiki
You must have edited a few core tiddlers and maybe added a few buttons? 

I'm not sure if you changed the images intentionally or not. 

I notice you have two ViewTemplate files, one with two dots before the extension instead of one. 

If none of these changes were intentional you can delete all of them. Normally when I make custom buttons and stuff I name it a different prefix like $:/arlen/ unless I actually need to override a core tiddler. This helps to keep upgrade cleaner. I'm not seeing anything here yet that should be affecting it. 

Kevin Kleinfelter

unread,
May 3, 2020, 9:08:36 PM5/3/20
to TiddlyWiki

ls -a data/*

data/dtl:

.  ..  tiddlers  tiddlywiki.info


data/pkb:

.  ..  tiddlers  tiddlywiki.info


data/sue:

.  ..  tiddlers  tiddlywiki.info

Kevin Kleinfelter

unread,
May 3, 2020, 9:30:49 PM5/3/20
to TiddlyWiki
I didn't *directly* create those files.  Looking at a couple of them, they say they were created by "jd".  I'm guessing that is http://j.d.material.tiddlyspot.com/ .  I tried using that but it had some side effects I didn't care for.  I'll remove those.  Thanks for pointing them out.

Kevin Kleinfelter

unread,
May 3, 2020, 9:35:34 PM5/3/20
to TiddlyWiki
Update: The problem has nothing to do with my tiddlers. It looks like somehow npm is broken on my system.
  • cd /tmp
  • mkdir node_modules
  • npm install tiddl...@5.1.21

  • node ./node_modules/tiddlywiki/tiddlywiki.js --version

  • -- It reports 5.1.21, as expected

  • npm upgrade tiddl...@5.1.22

  • -- It silently completes.  $? is 0, indicating success.

  • node ./node_modules/tiddlywiki/tiddlywiki.js --version

  • -- It reports 5.1.21

For whatever reason, "npm upgrade" simply does not work on my system.

Arlen Beiler

unread,
May 3, 2020, 9:39:38 PM5/3/20
to TiddlyWiki
Yeah, which would also explain why there is no tiddlywiki command on your $PATH.

The --version command will give you the package.json version, which means that it should be more accurate than npm show version

It does seem like there's a few problems with your npm install, I think. That's probably where I would look next. 

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.

Kevin Kleinfelter

unread,
May 3, 2020, 10:05:07 PM5/3/20
to TiddlyWiki
Ha!  Found it.

npm upgrade tiddl...@5.1.22 # has no effect on a 5.1.21.

npm upgrade tiddlywiki # upgrades it to 5.1.22


This happens on multiple system.  I went to my Mac which has never had Tiddlywiki.  I went to my home directory and ran


    • mkdir node_modules
    • npm install tiddl...@5.1.21
    • npm upgrade tiddl...@5.1.22
    • node node_modules/tiddlywiki/tiddlywiki.js --version
    and it outputs 5.1.21.

    I don't know node or npm real well, but my *guess* is that something is wrong in the metadata for either 5.1.21 or 5.1.22.

    You might try it on your system (if you have a linux or a Mac system) by doing a cd to a new directory, creating node_modules, doing a non-global install of 5.1.21 and then specifying and upgrade to 5.1.22.  I bet you'll find the same behavior.

    Reply all
    Reply to author
    Forward
    0 new messages