karma command not found when karma already installed

前端 未结 9 1997
独厮守ぢ
独厮守ぢ 2021-01-30 19:49

I used node.js to install karma. My first try failed when running the following command on Terminal:

npm install -g karma

That failed so I dec

9条回答
  •  忘了有多久
    2021-01-30 20:28

    Don't need to completely uninstall node.js

    Just

    sudo rm -rf /usr/local/lib/node_modules/npm/
    

    Then
    install node.js

    Then
    reinstall karma

    This worked for me.

提交回复
热议问题