Karma Introduction: A Test execution Process management utility developed by the ANGULARJS team to help developers perform tests in different browsers.
Typically paired with Phantomjs as the browser launcher. PHANTOMJS is a non-mainstream WebKit browser that is primarily used in development environments where display output is not required, so it is ideal for use in testing.
Karma start generally reads the karma.config.js start of the current path. If you are prompted PHANTOMJS not found on PATH, it is generally phantomjs because the wall is not installed.
The solution is as follows:
1 on official website Https://github.com/Medium/phantomjs/releases/download/v2.1.1/phantomjs-2.1.1-windows.zip need FQ
2 Place the downloaded Phantomjs-2.1.1-windows.zip C:\Users\ your computer user name \appdata\local\temp\phantomjs\phantomjs-2.1.1-windows.zip
3 Execute NPM I in the project directory
I also appear to prompt error:cannot find module ' request-progress ', the reason may be Phantomjs's dependency package is not loaded on
The command line executes NPM i request-progress, so you can use karma.
Karma boot prompt Phantomjs not found on PATH