Skip to content

Instantly share code, notes, and snippets.

@tregusti
Created August 4, 2014 12:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tregusti/c3f7cf065ea3ed8c033b to your computer and use it in GitHub Desktop.
Save tregusti/c3f7cf065ea3ed8c033b to your computer and use it in GitHub Desktop.
Install error for osx-tag module on node 0.11.13
> osx-tag@0.1.0 install /Users/glenn/code/abcdefgh/node_modules/osx-tag
> node-gyp rebuild
CXX(target) Release/obj.target/osx_tag/osx_tag.o
../osx_tag.mm:19:18: error: unknown type name 'uv_work_t'
void workGetTags(uv_work_t* req)
^
../osx_tag.mm:39:18: error: unknown type name 'uv_work_t'
void workSetTags(uv_work_t* req)
^
../osx_tag.mm:56:18: error: unknown type name 'uv_work_t'
void workAddTags(uv_work_t* req)
^
../osx_tag.mm:67:21: error: unknown type name 'uv_work_t'
void workRemoveTags(uv_work_t* req)
^
../osx_tag.mm:77:19: error: unknown type name 'uv_work_t'
void afterGetTags(uv_work_t* req, int status)
^
../osx_tag.mm:79:17: error: calling a protected constructor of class 'v8::HandleScope'
HandleScope scope;
^
/Users/glenn/.node-gyp/0.11.13/deps/v8/include/v8.h:845:13: note: declared protected here
V8_INLINE HandleScope() {}
^
../osx_tag.mm:86:42: error: no member named 'New' in 'v8::String'
error = Exception::Error(String::New(data->error));
~~~~~~~~^
../osx_tag.mm:88:17: error: no matching function for call to 'Null'
error = Null();
^~~~
/Users/glenn/.node-gyp/0.11.13/deps/v8/include/v8.h:6550:19: note: candidate function not viable: requires single argument 'isolate', but
no arguments were provided
Handle<Primitive> Null(Isolate* isolate) {
^
../osx_tag.mm:90:49: error: cannot initialize a parameter of type 'v8::Isolate *' with an rvalue of type 'NSUInteger'
(aka 'unsigned long')
Handle<Value> args[2] = { error, Array::New([data->tags count]) };
^~~~~~~~~~~~~~~~~~
/Users/glenn/.node-gyp/0.11.13/deps/v8/include/v8.h:2486:36: note: passing argument to parameter 'isolate' here
static Local<Array> New(Isolate* isolate, int length = 0);
^
../osx_tag.mm:94:47: error: no member named 'New' in 'v8::String'
args[1].As<Array>()->Set(i++, String::New([item UTF8String]));
~~~~~~~~^
../osx_tag.mm:97:19: error: member reference type 'Persistent<v8::Function>' is not a pointer; maybe you meant to use '.'?
data->callback->Call(Context::GetCurrent()->Global(), 2, args);
~~~~~~~~~~~~~~^~
.
../osx_tag.mm:97:21: error: no member named 'Call' in 'v8::Persistent<v8::Function, v8::NonCopyablePersistentTraits<v8::Function> >'
data->callback->Call(Context::GetCurrent()->Global(), 2, args);
~~~~~~~~~~~~~~ ^
../osx_tag.mm:97:35: error: no member named 'GetCurrent' in 'v8::Context'
data->callback->Call(Context::GetCurrent()->Global(), 2, args);
~~~~~~~~~^
../osx_tag.mm:102:20: error: no member named 'Dispose' in 'v8::Persistent<v8::Function, v8::NonCopyablePersistentTraits<v8::Function> >'
data->callback.Dispose();
~~~~~~~~~~~~~~ ^
../osx_tag.mm:109:19: error: unknown type name 'uv_work_t'
void afterSetTags(uv_work_t* req, int status)
^
../osx_tag.mm:111:17: error: calling a protected constructor of class 'v8::HandleScope'
HandleScope scope;
^
/Users/glenn/.node-gyp/0.11.13/deps/v8/include/v8.h:845:13: note: declared protected here
V8_INLINE HandleScope() {}
^
../osx_tag.mm:117:42: error: no member named 'New' in 'v8::String'
error = Exception::Error(String::New(data->error));
~~~~~~~~^
../osx_tag.mm:119:17: error: no matching function for call to 'Null'
error = Null();
^~~~
/Users/glenn/.node-gyp/0.11.13/deps/v8/include/v8.h:337:28: note: candidate function not viable: requires single argument 'isolate', but
no arguments were provided
friend Handle<Primitive> Null(Isolate* isolate);
^
../osx_tag.mm:123:19: error: member reference type 'Persistent<v8::Function>' is not a pointer; maybe you meant to use '.'?
data->callback->Call(Context::GetCurrent()->Global(), 1, args);
~~~~~~~~~~~~~~^~
.
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [Release/obj.target/osx_tag/osx_tag.o] Error 1
0 info it worked if it ends with ok
1 verbose cli [ '/Users/glenn/.nvm/v0.11.13/bin/node',
1 verbose cli '/Users/glenn/.nvm/v0.11.13/bin/npm',
1 verbose cli 'install',
1 verbose cli '--save',
1 verbose cli 'osx-tag' ]
2 info using npm@1.4.9
3 info using node@v0.11.13
4 warn package.json abcdefgh@0.0.0 No description
5 warn package.json abcdefgh@0.0.0 No repository field.
6 warn package.json abcdefgh@0.0.0 No README data
7 verbose readDependencies using package.json deps
8 verbose cache add [ 'osx-tag@^0.1.0', null ]
9 verbose cache add name=undefined spec="osx-tag@^0.1.0" args=["osx-tag@^0.1.0",null]
10 verbose parsed url { protocol: null,
10 verbose parsed url slashes: null,
10 verbose parsed url auth: null,
10 verbose parsed url host: null,
10 verbose parsed url port: null,
10 verbose parsed url hostname: null,
10 verbose parsed url hash: null,
10 verbose parsed url search: null,
10 verbose parsed url query: null,
10 verbose parsed url pathname: 'osx-tag@%5E0.1.0',
10 verbose parsed url path: 'osx-tag@%5E0.1.0',
10 verbose parsed url href: 'osx-tag@%5E0.1.0' }
11 verbose cache add name="osx-tag" spec="^0.1.0" args=["osx-tag","^0.1.0"]
12 verbose parsed url { protocol: null,
12 verbose parsed url slashes: null,
12 verbose parsed url auth: null,
12 verbose parsed url host: null,
12 verbose parsed url port: null,
12 verbose parsed url hostname: null,
12 verbose parsed url hash: null,
12 verbose parsed url search: null,
12 verbose parsed url query: null,
12 verbose parsed url pathname: '%5E0.1.0',
12 verbose parsed url path: '%5E0.1.0',
12 verbose parsed url href: '%5E0.1.0' }
13 verbose addNamed [ 'osx-tag', '^0.1.0' ]
14 verbose addNamed [ null, '>=0.1.0-0 <0.2.0-0' ]
15 silly lockFile a8eb5656-osx-tag-0-1-0 osx-tag@^0.1.0
16 verbose lock osx-tag@^0.1.0 /Users/glenn/.npm/a8eb5656-osx-tag-0-1-0.lock
17 silly addNameRange { name: 'osx-tag', range: '>=0.1.0-0 <0.2.0-0', hasData: false }
18 verbose url raw osx-tag
19 verbose url resolving [ 'https://registry.npmjs.org/', './osx-tag' ]
20 verbose url resolved https://registry.npmjs.org/osx-tag
21 info trying registry request attempt 1 at 14:36:14
22 verbose etag "CO0VW7ZS7OQR30VVD7BF62LCF"
23 http GET https://registry.npmjs.org/osx-tag
24 http 304 https://registry.npmjs.org/osx-tag
25 silly registry.get cb [ 304,
25 silly registry.get { date: 'Mon, 04 Aug 2014 12:36:15 GMT',
25 silly registry.get server: 'Apache',
25 silly registry.get via: '1.1 varnish',
25 silly registry.get 'last-modified': 'Mon, 04 Aug 2014 12:36:15 GMT',
25 silly registry.get 'cache-control': 'max-age=60',
25 silly registry.get etag: '"CO0VW7ZS7OQR30VVD7BF62LCF"',
25 silly registry.get 'x-served-by': 'cache-fra1225-FRA',
25 silly registry.get 'x-cache': 'MISS',
25 silly registry.get 'x-cache-hits': '0',
25 silly registry.get 'x-timer': 'S1407155775.008932,VS0,VE177',
25 silly registry.get vary: 'Accept',
25 silly registry.get 'content-length': '0',
25 silly registry.get connection: 'close' } ]
26 verbose etag osx-tag from cache
27 silly addNameRange number 2 { name: 'osx-tag', range: '>=0.1.0-0 <0.2.0-0', hasData: true }
28 silly addNameRange versions [ 'osx-tag', [ '0.1.0' ] ]
29 verbose addNamed [ 'osx-tag', '0.1.0' ]
30 verbose addNamed [ '0.1.0', '0.1.0' ]
31 silly lockFile a37e0526-osx-tag-0-1-0 osx-tag@0.1.0
32 verbose lock osx-tag@0.1.0 /Users/glenn/.npm/a37e0526-osx-tag-0-1-0.lock
33 silly lockFile a37e0526-osx-tag-0-1-0 osx-tag@0.1.0
34 silly lockFile a37e0526-osx-tag-0-1-0 osx-tag@0.1.0
35 silly lockFile a8eb5656-osx-tag-0-1-0 osx-tag@^0.1.0
36 silly lockFile a8eb5656-osx-tag-0-1-0 osx-tag@^0.1.0
37 silly resolved [ { name: 'osx-tag',
37 silly resolved version: '0.1.0',
37 silly resolved description: 'A module to operate tags on OSX Mavericks',
37 silly resolved main: 'build/Release/osx_tag',
37 silly resolved scripts: { test: 'mocha --reporter spec', install: 'node-gyp rebuild' },
37 silly resolved keywords: [ 'tag', 'osx', 'system', 'fs', 'mac' ],
37 silly resolved author:
37 silly resolved { name: 'Keichi Takahashi',
37 silly resolved email: 'keichi.t@me.com',
37 silly resolved url: 'http://blog.keichi.net/' },
37 silly resolved license: 'MIT',
37 silly resolved gypfile: true,
37 silly resolved devDependencies: { mocha: '~1.14.0' },
37 silly resolved repository: { type: 'git', url: 'http://github.com/Keichi/osx-tag.git' },
37 silly resolved bugs: { url: 'http://github.com/Keichi/osx-tag/issues' },
37 silly resolved readme: '# osx-tag\n\nThis is a module to operate tags on OSX Mavericks.\nYou can get/set/add/remove tags with simple API methods.\nWorks only on Mac OSX 10.9.x.\n\n## Quick Start\nInstall `osx-tag` with npm:\n\n```shell\n$ npm install osx-tag\n```\n\nSimple example:\n\n```javascript\nvar tag = require(\'osx-tag\');\nvar path = \'foo.txt\';\n\ntag.getTags(path, function(err, tags) {\n if (err) throw err;\n console.log(tags);\n tag.addTags(path, [\'Important\', \'Photo\'], function(err) {\n if (err) throw err;\n }); \n});\n```\n\n## API\n\n- All methods works asynchronously.\n- All arguments are required and cannot be omitted.\n\n### getTags(path, callback)\n- `path` - Path of the file/directory to retrieve tags.\n- `callback` - This callback function gets two arguments `(err, tags)`\n where `tags` is an array of tag names.\n\n### setTags(path, tags, callback)\n- `path` - Path of the file/directory to set tags.\n- `tags` - Array of tag names to set. File/directory\'s tags are overwritten\n with these.\n- `callback` - This callback gets one argument `(err)`.\n\n### addTags(path, tags, callback)\n- `path` - Path of the file/directory to add tags.\n- `tags` - Array of tag names to add.\n- `callback` - This callback gets one argument `(err)`.\n\n### removeTags(path, tags, callback)\n- `path` - Path of the file/directory to remove tags.\n- `tags` - Array of tag names to remove.\n- `callback` - This callback gets one argument `(err)`.\n',
37 silly resolved readmeFilename: 'README.md',
37 silly resolved homepage: 'https://github.com/Keichi/osx-tag',
37 silly resolved _id: 'osx-tag@0.1.0',
37 silly resolved _from: 'osx-tag@^0.1.0' } ]
38 info install osx-tag@0.1.0 into /Users/glenn/code/abcdefgh
39 info installOne osx-tag@0.1.0
40 info /Users/glenn/code/abcdefgh/node_modules/osx-tag unbuild
41 verbose tar unpack /Users/glenn/.npm/osx-tag/0.1.0/package.tgz
42 silly lockFile e6e34b22-auto-tagger-node-modules-osx-tag tar:///Users/glenn/code/abcdefgh/node_modules/osx-tag
43 verbose lock tar:///Users/glenn/code/abcdefgh/node_modules/osx-tag /Users/glenn/.npm/e6e34b22-auto-tagger-node-modules-osx-tag.lock
44 silly lockFile 3b971fd2-nn-npm-osx-tag-0-1-0-package-tgz tar:///Users/glenn/.npm/osx-tag/0.1.0/package.tgz
45 verbose lock tar:///Users/glenn/.npm/osx-tag/0.1.0/package.tgz /Users/glenn/.npm/3b971fd2-nn-npm-osx-tag-0-1-0-package-tgz.lock
46 silly gunzTarPerm modes [ '755', '644' ]
47 silly gunzTarPerm extractEntry package.json
48 silly gunzTarPerm extractEntry .npmignore
49 silly gunzTarPerm extractEntry README.md
50 silly gunzTarPerm extractEntry binding.gyp
51 silly gunzTarPerm extractEntry osx_tag.mm
52 silly gunzTarPerm extractEntry test/test.js
53 silly gunzTarPerm extractEntry test/test.txt
54 silly lockFile e6e34b22-auto-tagger-node-modules-osx-tag tar:///Users/glenn/code/abcdefgh/node_modules/osx-tag
55 silly lockFile e6e34b22-auto-tagger-node-modules-osx-tag tar:///Users/glenn/code/abcdefgh/node_modules/osx-tag
56 silly lockFile 3b971fd2-nn-npm-osx-tag-0-1-0-package-tgz tar:///Users/glenn/.npm/osx-tag/0.1.0/package.tgz
57 silly lockFile 3b971fd2-nn-npm-osx-tag-0-1-0-package-tgz tar:///Users/glenn/.npm/osx-tag/0.1.0/package.tgz
58 info preinstall osx-tag@0.1.0
59 verbose readDependencies using package.json deps
60 verbose readDependencies using package.json deps
61 silly resolved []
62 verbose about to build /Users/glenn/code/abcdefgh/node_modules/osx-tag
63 info build /Users/glenn/code/abcdefgh/node_modules/osx-tag
64 verbose linkStuff [ false,
64 verbose linkStuff false,
64 verbose linkStuff false,
64 verbose linkStuff '/Users/glenn/code/abcdefgh/node_modules' ]
65 info linkStuff osx-tag@0.1.0
66 verbose linkBins osx-tag@0.1.0
67 verbose linkMans osx-tag@0.1.0
68 verbose rebuildBundles osx-tag@0.1.0
69 info install osx-tag@0.1.0
70 verbose unsafe-perm in lifecycle true
71 info osx-tag@0.1.0 Failed to exec install script
72 info /Users/glenn/code/abcdefgh/node_modules/osx-tag unbuild
73 info preuninstall osx-tag@0.1.0
74 info uninstall osx-tag@0.1.0
75 verbose true,/Users/glenn/code/abcdefgh/node_modules,/Users/glenn/code/abcdefgh/node_modules unbuild osx-tag@0.1.0
76 info postuninstall osx-tag@0.1.0
77 error osx-tag@0.1.0 install: `node-gyp rebuild`
77 error Exit status 1
78 error Failed at the osx-tag@0.1.0 install script.
78 error This is most likely a problem with the osx-tag package,
78 error not with npm itself.
78 error Tell the author that this fails on your system:
78 error node-gyp rebuild
78 error You can get their info via:
78 error npm owner ls osx-tag
78 error There is likely additional logging output above.
79 error System Darwin 14.0.0
80 error command "/Users/glenn/.nvm/v0.11.13/bin/node" "/Users/glenn/.nvm/v0.11.13/bin/npm" "install" "--save" "osx-tag"
81 error cwd /Users/glenn/code/abcdefgh
82 error node -v v0.11.13
83 error npm -v 1.4.9
84 error code ELIFECYCLE
85 verbose exit [ 1, true ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment