3

I am new to nodejs and npm and I am trying to understand how npm uninstall works.

I have downloaded and installed a module, messed around a bit with its code, but now I want to restore the original version, so I did:

npm uninstall <module>

(no more folder in my node_modules folder)

npm install <module>

but after the installation the files that are back are the one I have precedent modified and not the original one (even if I see all the GET message from npm while I install)

I tried also npm uninstall --save <module>, and npm cache clean, but with the same result.

What am I missing?

2
  • Try npm cache clean to empty npm's cache before installing. Commented Mar 3, 2014 at 10:46
  • Unfortunately I have already tried it. Commented Mar 3, 2014 at 10:48

1 Answer 1

2

Updating npm, uninstalling the module, cleaning the cache with -f, and then reinstalling it again finally worked!

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.