NPM not working. Cannot find module 'strip ansi'

后端 未结 8 1890
小蘑菇
小蘑菇 2021-01-02 10:43

I just downloaded node but npm is not working. whenever I use a npm comman I get Error: cannot find module \'strip-ansi\'.

相关标签:
8条回答
  • 2021-01-02 11:16

    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
    
    0 讨论(0)
  • 2021-01-02 11:21

    Solved by doing npm cache clean and then npm install

    0 讨论(0)
提交回复
热议问题