in my Enide-project 'myproj' I am using some local node_modules. I want to refresh one of these node_modules after the developer informed me, that he solved an issue. I thought, I need to call npm update
and all will be fine. Anyway the module was not updated, I was able to verify this, because I had a console.log-statement in my code which was not part of the official module.
I tried to call npm remove
followed from npm install
. The result was the same?! How can npm remember my own code?
Afterwards I deleted the folder in windows explorer, went to github, downloaded and extracted the module in my local node_modules-folder. This worked, but after running my main.js-file there was an error occuring, that some auto-generated modules are missing and there are some dependancy issues. Long story short: I called npm update
to solve the dependancy problem and npm install
to start the generation procedures. Then, I was able to run my program, but surprisingly I was facing my old version of my own code with my console.log-statement. What went wrong?
How to switch to a newer version of one existing node.js-module?