I just downloaded node but npm is not working. whenever I use a npm comman I get Error: cannot find module \'strip-ansi\'.
For what it's worth, this ended up happening to me, using nvm on mac. npm cache clean
didn't work. I ended up reinstalling via nvm:
$ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash
$ nvm install node
Solved by doing npm cache clean
and then npm install