NPM not working. Cannot find module 'strip ansi'

后端 未结 8 1985
小蘑菇
小蘑菇 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 10:58

    I was stuck on this problem too. Finally, I solved the issue by adding value '.js', '.ts' to resolve.extensions in my webpack.config.js. If you are using webpack too, this may help.

提交回复
热议问题