NPM not working. Cannot find module 'strip ansi'

后端 未结 8 2025
小蘑菇
小蘑菇 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条回答
  •  猫巷女王i
    2021-01-02 11:13

    It solved for me by going to the NPM install folder at /usr/local/lib/node_modules/npm and running the yarn command. After running it successfully, NPM started working normally.

提交回复
热议问题