问题描述:

When I try to install karma using the command

npm install -g karma

I am getting the following errors, which I can't decode. npm installed under my user account so permissions should not be an issue, nor does the error message indicate that it might be. I tried executing it with sudo just for the sake of it, and got the same message. Any ideas?

> [email protected] install /Users/ethan/local/lib/node_modules/karma/node_modules/chokidar/node_modules/fsevents

> node-gyp rebuild

CXX(target) Release/obj.target/fse/fsevents.o

In file included from ../fsevents.cc:86:

../src/constants.cc:10:66: warning: template argument uses unnamed type [-Wunnamed-type-template-args]

object->Set(NanNew<v8::String>("kFSEventStreamEventFlagNone"), NanNew<v8::Integer>(kFSEventStreamEventFlagNone));

^~~~~~

/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/FSEvents.h:290:1: note: unnamed type used in template argument was declared here

enum {

^

1 warning generated.

SOLINK_MODULE(target) Release/fse.node

SOLINK_MODULE(target) Release/fse.node: Finished

> [email protected] install /Users/ethan/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] /Users/ethan/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])

网友答案:

This seems like a duplicate of this SO question, where karma is actually installed but the karma-cli package needs to be installed globally as well using npm install -g karma-cli

相关阅读:
Top