Reputation: 1342
I am trying to install Karma onto OSX v10.9.3.
I open up the terminal and enter npm install -g karma
. When I do this, I get the following output:
mc-s089979% npm install -g karma
> [email protected] install /usr/local/lib/node_modules/karma/node_modules/chokidar/node_modules/fsevents
> node-gyp rebuild
CXX(target) Release/obj.target/fse/fsevents.o
SOLINK_MODULE(target) Release/fse.node
SOLINK_MODULE(target) Release/fse.node: Finished
> [email protected] install /usr/local/lib/node_modules/karma/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)
CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
SOLINK_MODULE(target) Release/bufferutil.node
SOLINK_MODULE(target) Release/bufferutil.node: Finished
CXX(target) Release/obj.target/validation/src/validation.o
SOLINK_MODULE(target) Release/validation.node
SOLINK_MODULE(target) Release/validation.node: Finished
[email protected] /usr/local/lib/node_modules/karma
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected])
If I then try to execute karma by typing karma
in the terminal, I get command not found: karma
which suggests that it hasn't been installed. Looking in the output above, there is an error: (node-gyp rebuild 2> builderror.log) || (exit 0)
. I've found builderror.log in /usr/local/lib/node_modules/karma/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/builderror.log
, however, it is empty. find
couldn't find any other builderror.log files. Do you know where else to look?
I've tried:
npm update
npm install karma
sudo npm install karma
sudo npm install -g karma
What else should I try?
Upvotes: 1
Views: 3021
Reputation: 767
Add this to your .slugignore file:
/node_modules/grunt-karma/
/node_modules/grunt-protractor-runner/
/node_modules/karma/
/node_modules/karma-chrome-launcher/
/node_modules/karma-mocha/
/node_modules/karma-ng-html2js-preprocessor/
Upvotes: 0
Reputation: 1342
It seems that it was installing. I didn't think it was because running karma from the command line didn't work. However, in order to run it from the command line you need to install karma-cli: npm install -g karma-cli
Thanks to @peter-lyons for this answer - https://stackoverflow.com/a/23044629/211560
Upvotes: 4