npm expects package versions to follow best practice and so will not automatically update anything where the major version has changed unless you tell it to explicitly. npm outdated indicates this by telling you there is a difference between the wanted and latest columns.
That's why I recommend simply using npm install -g node-red@latest --unsafe-perm --production in an npm script so that you don't need to worry about it. All you need to know is whether it needs updating or not. Though you should obviously decide for yourself when you want to jump to a new major version.
Yes, Sure, during my first exposure to node-red, i might have chosen wrong steps, but since it was (and still is) working fine for me, may be i did not realize this issue (if it is one)
its no problem ..
but to be on the safe side (and you havent been installing any other nodejs applications in that folder)
instead of telling you to delete them .. better just rename node_modules to node_modules_old
and package-lock.json to package-lock.json.old
I haven't used monaco on this machine before to I only added the codeEditor parameter to editorTheme
// Customising the editor
editorTheme: {
projects: {
// To enable the Projects feature, set this value to true
enabled: true
},
codeEditor: {
lib: "monaco"
}
},
@knolleary,
I have a question regarding keeping, in some way, the list of flows that are displayed vs. hidden perhaps in the configuration? I tried closing and opening the editor on this upgrade and there seems to be no persistence.
As per the release blog post that introduced the feature:
For this first release of the feature, the hidden state of a tab is stored in user preferences within the editor - it is not a property of the flow itself. This means you can’t share a set of flows with another user and have some of the tabs pre-hidden. It is an open point of discussion as to whether we want to allow that behaviour.
That means a particular browser should remember what is hidden. If that isn't what you see, please raise an issue with full details of what you do/don't see happen.
The state of shown/hidden is stored in the browser localStorage - which is managed by the browser. Different browsers may have different retention policies (eg based on total data stored for example) - but I would expect the same browser version to be fairly consistent across platforms. If that storage gets flushed for some reason (maybe an upgrade for example) then any local data may be lost.
OK, so is there any traction for a way to preserve this list of tabs for a user? So we can either have a memory to work from or force a user through configuration management for them? I realize this is out of the normal for programmers which are singular users. For Industrial applications if no security is applied, but only a list of normally available tabs by "default" is useful for areas of interest which should and then should not be accessed. I realize since this means is not an exclusion, but a suggestion.
I had previously submitted "Filtering" the nodes, therefore by naming convention you can access flows of kind in the display vs. weeding through them in either display for function. Applying a saved Filter in the dropdown etc. for preferences...
@Colin ,
This issue seems to be only on my Linux laptop. I just upgraded to 2.14 on Win10 and its still working to remember my flow states.
On my Linux laptop, I had a few flows open on my system after upgrading to 2.14. I tried closing the browser and opening it. It did not "remember" my flows "Hidden/Show". I closed Node-RED and thus the browser as well. I opened it and then it also did not "remember" the states.
On my Windows 10, I closed the browser and it opens it the way it was.