I was getting the following error when I ran \"karma start\"
module.js:340 throw err; ^ Error: Cannot find module \'jasmine-core\' at
Even with karma
and karma-jasmine
installed in the local project's node_modules
you must still npm install jasmine
.
npm install karma karma-jasmine jasmine
to install the required modules locally.Optionally add --save-dev
to write to your package.json
.
Note these do not need to be -g
globally installed here.
karma start
This step requires you to have Karma installed globally (sudo npm install -g karma
).