So I have installed node.js from nodejs.org and I have installed karma.js in my project using the Webstorm command tool: npm install karma. I have also added those 3 path variables (please tell me which one I don't need) in Webstorm->Settings->Path Variables.
Name: nodejs Value: /usr/local/bin
Name: npm Value: /usr/local/lib/node_modules/npm/bin
Name: karma Value: /Users/maxime/Documents/WebStorm/icms/node_modules/karma/bin
When I type init karma to get the karma config file, I get: bash: karma: command not found
I search on the site for some answers, but all I found was to add those path variables...
EDIT: I tried with sudo but it does not work
EDIT: It works with /Users/maxime/Documents/WebStorm/icms-dev-39534/node_modules/karma/bin/karma init, but it's still not working with karma init.