You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
In a separate terminal window or tab, go to the angular-phonecat directory
and run ./scripts/test.sh to start the Karma server (the config file necessary
to start the server is located at ./config/karma.conf.js).
Here's the error:
./scripts/test.sh: line 9: ./scripts/../node_modules/karma/bin/karma: No such file or directory
However, since I installed karma globally, it was an easy fix, changing that line in the script to
karma start $BASE_DIR/../config/karma.conf.js $*
Fwiw, if I had installed karma locally, the script probably would have worked. In any case, it might be an improvement if the karma install and the karma invocation were in sync.
The text was updated successfully, but these errors were encountered:
In http://docs.angularjs.org/tutorial says to install Karma globally using the -g flag:
But then in http://docs.angularjs.org/tutorial/step_02 the test script looks for for karma in the local node-modules and fails
Here's the error:
The offending command in the script is
However, since I installed karma globally, it was an easy fix, changing that line in the script to
Fwiw, if I had installed karma locally, the script probably would have worked. In any case, it might be an improvement if the karma install and the karma invocation were in sync.
The text was updated successfully, but these errors were encountered: