-
-
Save pavelkucera/81d62825010a6285e4a8 to your computer and use it in GitHub Desktop.
contextify error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm http GET https://registry.npmjs.org/contextify | |
npm http 304 https://registry.npmjs.org/contextify | |
npm http GET https://registry.npmjs.org/bindings | |
npm http 304 https://registry.npmjs.org/bindings | |
> contextify@0.1.3 install c:\node_modules\contextify | |
> node-gyp rebuild | |
c:\node_modules\contextify>node "C:\Program Files\nodejs\node_modules\npm\bin\no | |
de-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild | |
contextify.cc | |
c:\users\pavel\.node-gyp\0.8.1\src\node_object_wrap.h(57): warning C4251: 'node | |
::ObjectWrap::handle_' : class 'v8::Persistent<T>' needs to have dll-interface | |
to be used by clients of class 'node::ObjectWrap' [c:\node_modules\contextify\b | |
uild\contextify.vcxproj] | |
with | |
[ | |
T=v8::Object | |
] | |
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xlocale(323): wa | |
rning C4530: C++ exception handler used, but unwind semantics are not enabled. | |
Specify /EHsc [c:\node_modules\contextify\build\contextify.vcxproj] | |
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(99 | |
0,5): warning MSB8012: TargetPath(c:\node_modules\contextify\build\Release\cont | |
extify.dll) does not match the Linker's OutputFile property value (c:\node_modu | |
les\contextify\build\Release\contextify.node). This may cause your project to b | |
uild incorrectly. To correct this, please make sure that $(OutDir), $(TargetNam | |
e) and $(TargetExt) property values match the value specified in %(Link.OutputF | |
ile). [c:\node_modules\contextify\build\contextify.vcxproj] | |
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(99 | |
1,5): warning MSB8012: TargetExt(.dll) does not match the Linker's OutputFile p | |
roperty value (.node). This may cause your project to build incorrectly. To cor | |
rect this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) prop | |
erty values match the value specified in %(Link.OutputFile). [c:\node_modules\c | |
ontextify\build\contextify.vcxproj] | |
LINK : fatal error LNK1181: cannot open input file 'kernel32.lib' [c:\node_modu | |
les\contextify\build\contextify.vcxproj] | |
gyp ERR! rebuild error Error: `C:\Windows\Microsoft.NET\Framework\v4.0.30319\msb | |
uild.exe` failed with exit code: 1 | |
gyp ERR! rebuild error at ChildProcess.onExit (C:\Program Files\nodejs\node_ | |
modules\npm\node_modules\node-gyp\lib\build.js:214:23) | |
gyp ERR! rebuild error at ChildProcess.EventEmitter.emit (events.js:91:17) | |
gyp ERR! rebuild error at Process._handle.onexit (child_process.js:674:10) | |
gyp ERR! not ok | |
npm ERR! contextify@0.1.3 install: `node-gyp rebuild` | |
npm ERR! `cmd "/c" "node-gyp rebuild"` failed with 1 | |
npm ERR! | |
npm ERR! Failed at the contextify@0.1.3 install script. | |
npm ERR! This is most likely a problem with the contextify package, | |
npm ERR! not with npm itself. | |
npm ERR! Tell the author that this fails on your system: | |
npm ERR! node-gyp rebuild | |
npm ERR! You can get their info via: | |
npm ERR! npm owner ls contextify | |
npm ERR! There is likely additional logging output above. | |
npm ERR! System Windows_NT 6.1.7601 | |
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod | |
ejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "contextify" | |
npm ERR! cwd c:\ | |
npm ERR! node -v v0.8.1 | |
npm ERR! npm -v 1.1.33 | |
npm ERR! code ELIFECYCLE | |
npm ERR! message contextify@0.1.3 install: `node-gyp rebuild` | |
npm ERR! message `cmd "/c" "node-gyp rebuild"` failed with 1 | |
npm ERR! | |
npm ERR! Additional logging details can be found in: | |
npm ERR! c:\npm-debug.log | |
npm ERR! not ok code 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0 info it worked if it ends with ok | |
1 verbose cli [ 'C:\\Program Files\\nodejs\\\\node.exe', | |
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js', | |
1 verbose cli 'install', | |
1 verbose cli 'contextify' ] | |
2 info using npm@1.1.33 | |
3 info using node@v0.8.1 | |
4 verbose node symlink C:\Program Files\nodejs\\node.exe | |
5 verbose config file C:\Users\Pavel\.npmrc | |
6 verbose config file C:\Program Files\nodejs\etc\npmrc | |
7 verbose config file C:\Program Files\nodejs\node_modules\npm\npmrc | |
8 verbose read json c:\nodejs\Episodes\package.json | |
9 verbose read json c:\nodejs\Episodes\node_modules\bindings\package.json | |
10 verbose read json c:\nodejs\Episodes\node_modules\jsdom\package.json | |
11 verbose read json c:\nodejs\Episodes\node_modules\nodlehs-diagnostics\package.json | |
12 verbose read json c:\nodejs\Episodes\package.json | |
13 verbose cache add [ 'contextify', null ] | |
14 silly cache add name=undefined spec="contextify" args=["contextify",null] | |
15 verbose parsed url { pathname: 'contextify', | |
15 verbose parsed url path: 'contextify', | |
15 verbose parsed url href: 'contextify' } | |
16 verbose lock contextify C:\Users\Pavel\AppData\Roaming\npm-cache\e90e8b6a67650cff13b866e8e47f5a8ee00ab808-contextify.lock | |
17 verbose addNamed [ 'contextify', '' ] | |
18 verbose addNamed [ null, '' ] | |
19 verbose lock contextify@ C:\Users\Pavel\AppData\Roaming\npm-cache\902bbeb242cc2c7413505ac918f0a64272666125-contextify-.lock | |
20 silly addNameRange { name: 'contextify', range: '', hasData: false } | |
21 verbose url raw contextify | |
22 verbose url resolving [ 'https://registry.npmjs.org/', './contextify' ] | |
23 verbose url resolved https://registry.npmjs.org/contextify | |
24 info retry registry request attempt 1 at 21:52:36 | |
25 verbose etag "4BII5IS20G21OD8UPP0IADFK5" | |
26 http GET https://registry.npmjs.org/contextify | |
27 http 304 https://registry.npmjs.org/contextify | |
28 silly registry.get cb [ 304, | |
28 silly registry.get { server: 'CouchDB/1.2.0 (Erlang OTP/R15B)', | |
28 silly registry.get etag: '"4BII5IS20G21OD8UPP0IADFK5"', | |
28 silly registry.get date: 'Sun, 15 Jul 2012 19:52:38 GMT', | |
28 silly registry.get 'content-length': '0' } ] | |
29 verbose etag contextify from cache | |
30 silly addNameRange number 2 { name: 'contextify', range: '', hasData: true } | |
31 silly addNameRange versions [ 'contextify', | |
31 silly addNameRange [ '0.0.2', | |
31 silly addNameRange '0.0.3', | |
31 silly addNameRange '0.0.4', | |
31 silly addNameRange '0.0.5', | |
31 silly addNameRange '0.0.6', | |
31 silly addNameRange '0.0.7', | |
31 silly addNameRange '0.1.0', | |
31 silly addNameRange '0.1.1', | |
31 silly addNameRange '0.1.2', | |
31 silly addNameRange '0.1.3' ] ] | |
32 verbose addNamed [ 'contextify', '0.1.3' ] | |
33 verbose addNamed [ '0.1.3', '0.1.3' ] | |
34 verbose lock contextify@0.1.3 C:\Users\Pavel\AppData\Roaming\npm-cache\7770d4b3b95b274c8573faab7ec68345dcbae57b-contextify-0-1-3.lock | |
35 verbose read json C:\Users\Pavel\AppData\Roaming\npm-cache\contextify\0.1.3\package\package.json | |
36 silly resolved [ { name: 'contextify', | |
36 silly resolved version: '0.1.3', | |
36 silly resolved description: 'Turn an object into a persistent execution context.', | |
36 silly resolved author: { name: 'Brian McDaniel', email: 'brianmcd05@gmail.com' }, | |
36 silly resolved contributors: [ [Object] ], | |
36 silly resolved keywords: [ 'context', 'vm' ], | |
36 silly resolved repository: | |
36 silly resolved { type: 'git', | |
36 silly resolved url: 'https://github.com/brianmcd/contextify.git' }, | |
36 silly resolved main: './lib/contextify', | |
36 silly resolved scripts: { test: 'nodeunit test/', install: 'node-gyp rebuild' }, | |
36 silly resolved engines: { node: '>=0.4.0' }, | |
36 silly resolved licenses: [ [Object] ], | |
36 silly resolved dependencies: { bindings: '*' }, | |
36 silly resolved devDependencies: { nodeunit: '>=0.5.x' }, | |
36 silly resolved gypfile: true, | |
36 silly resolved readme: '# Contextify\n\nTurn an object into a V8 execution context. A contextified object acts as the global \'this\' when executing scripts in its context. Contextify adds 3 methods to the contextified object: run(code, filename), getGlobal(), and dispose(). The main difference between Contextify and Node\'s vm methods is that Contextify allows asynchronous functions to continue executing in the Contextified object\'s context. See vm vs. Contextify below for more discussion.\n\n## Examples\n```javascript\nvar Contextify = require(\'contextify\');\nvar sandbox = { console : console, prop1 : \'prop1\'};\nContextify(sandbox);\nsandbox.run(\'console.log(prop1);\');\nsandbox.dispose(); // free the resources allocated for the context.\n```\n\n```javascript\nvar sandbox = Contextify(); // returns an empty contextified object.\nsandbox.run(\'var x = 3;\');\nconsole.log(sandbox.x); // prints 3\nsandbox.dispose();\n```\n\n```javascript\nvar sandbox = Contextify({setTimeout : setTimeout});\nsandbox.run("setTimeout(function () { x = 3; }, 5);");\nconsole.log(sandbox.x); // prints undefined\nsetTimeout(function () {\n console.log(sandbox.x); // prints 3\n sandbox.dispose();\n}, 10);\n```\n## Details\n\n**Contextify([sandbox])**\n\n sandbox - The object to contextify, which will be modified as described below\n If no sandbox is specified, an empty object will be allocated and used instead.\n\n Returns the contextified object. It doesn\'t make a copy, so if you already have a reference\n to the sandbox, you don\'t need to catch the return value.\n\nA Contextified object has 2 methods added to it:\n\n**run(code, [filename])**\n\n code - string containing JavaScript to execute\n filename - an optional filename for debugging.\n\n Runs the code in the Contextified object\'s context.\n\n**getGlobal()**\n\nReturns the actual global object for the V8 context. The global object is initialized with interceptors (discussed below) which forward accesses on it to the contextified object. This means the contextified object acts like the global object in most cases. Sometimes, though, you need to make a reference to the actual global object.\n\nFor example:\n\n```javascript\nvar window = Contextify({console : console});\nwindow.window = window;\nwindow.run("console.log(window === this);");\n// prints false.\n```\n\n```javascript\nvar window = Contextify({console : console});\nwindow.window = window.getGlobal();\nwindow.run("console.log(window === this);");\n// prints true\n```\n\nThe global object returned by getGlobal() can be treated like the contextified sandbox object, except that defining getters/setters will not work on it. Define getters and setters on the actual sandbox object instead.\n\n**dispose()**\n\nFrees the memory allocated for the underlying V8 context. If you don\'t call this when you\'re done, the V8 context memory will leak, as will the sandbox memory, since the context\'s global stores a strong reference to the sandbox object. You can still use your sandbox object after calling dispose(), but it\'s unsafe to use a global previously returned from getGlobal(). run, getGlobal, and dispose will be removed from the sandbox object.\n\n## Install\n\n npm install contextify\n\n## require(\'vm\') vs. Contextify\n\nNode\'s vm functions (runInContext etc) work by copying the values from the sandbox object onto a context\'s global object, executing the passed in script, then copying the results back. This means that scripts that create asynchronous functions (using mechanisms like setTimeout) won\'t have see the results of executing those functions, since the copying in/out only occurs during an explicit call to runInContext and friends. \n\nContextify creates a V8 context, and uses interceptors (see: http://code.google.com/apis/v8/embed.html#interceptors) to forward global object accesses to the sandbox object. This means there is no copying in or out, so asynchronous functions have the expected effect on the sandbox object. \n\n## Tests\n\nTesting is done with nodeunit. Run the tests with\n\n nodeunit test/\n\nOutput: \n\n OK: 92 assertions (27ms)\n\n\n## Building\n\n node-waf configure build\n\n## Acknowledgments\n\nInspiration taken from Assaf\'s Zombie.js context solution: https://github.com/assaf/zombie\n', | |
36 silly resolved _id: 'contextify@0.1.3', | |
36 silly resolved _from: 'contextify' } ] | |
37 info install contextify@0.1.3 into c:\nodejs\Episodes | |
38 info installOne contextify@0.1.3 | |
39 verbose from cache C:\Users\Pavel\AppData\Roaming\npm-cache\contextify\0.1.3\package\package.json | |
40 info c:\nodejs\Episodes\node_modules\contextify unbuild | |
41 verbose read json c:\nodejs\Episodes\node_modules\contextify\package.json | |
42 verbose tar unpack C:\Users\Pavel\AppData\Roaming\npm-cache\contextify\0.1.3\package.tgz | |
43 silly gunzTarPerm modes [ '755', '644' ] | |
44 silly gunzTarPerm extractEntry package.json | |
45 silly gunzTarPerm modified mode [ 'package.json', 438, 420 ] | |
46 silly gunzTarPerm extractEntry .npmignore | |
47 silly gunzTarPerm modified mode [ '.npmignore', 438, 420 ] | |
48 silly gunzTarPerm extractEntry README.md | |
49 silly gunzTarPerm modified mode [ 'README.md', 438, 420 ] | |
50 silly gunzTarPerm extractEntry binding.gyp | |
51 silly gunzTarPerm modified mode [ 'binding.gyp', 438, 420 ] | |
52 silly gunzTarPerm extractEntry changelog | |
53 silly gunzTarPerm modified mode [ 'changelog', 438, 420 ] | |
54 silly gunzTarPerm extractEntry lib/contextify.js | |
55 silly gunzTarPerm modified mode [ 'lib/contextify.js', 438, 420 ] | |
56 silly gunzTarPerm extractEntry LICENSE.txt | |
57 silly gunzTarPerm modified mode [ 'LICENSE.txt', 438, 420 ] | |
58 silly gunzTarPerm extractEntry src/contextify.cc | |
59 silly gunzTarPerm modified mode [ 'src/contextify.cc', 438, 420 ] | |
60 silly gunzTarPerm extractEntry test/contextify.js | |
61 silly gunzTarPerm modified mode [ 'test/contextify.js', 438, 420 ] | |
62 silly gunzTarPerm extractEntry wscript | |
63 silly gunzTarPerm modified mode [ 'wscript', 438, 420 ] | |
64 verbose read json c:\nodejs\Episodes\node_modules\contextify\package.json | |
65 info preinstall contextify@0.1.3 | |
66 verbose from cache c:\nodejs\Episodes\node_modules\contextify\package.json | |
67 verbose readDependencies using package.json deps | |
68 verbose from cache c:\nodejs\Episodes\node_modules\contextify\package.json | |
69 verbose readDependencies using package.json deps | |
70 silly resolved [] | |
71 verbose about to build c:\nodejs\Episodes\node_modules\contextify | |
72 info build c:\nodejs\Episodes\node_modules\contextify | |
73 verbose from cache c:\nodejs\Episodes\node_modules\contextify\package.json | |
74 verbose linkStuff [ false, false, false, 'c:\\nodejs\\Episodes\\node_modules' ] | |
75 info linkStuff contextify@0.1.3 | |
76 verbose linkBins contextify@0.1.3 | |
77 verbose linkMans contextify@0.1.3 | |
78 verbose rebuildBundles contextify@0.1.3 | |
79 info install contextify@0.1.3 | |
80 verbose unsafe-perm in lifecycle true | |
81 silly exec cmd "/c" "node-gyp rebuild" | |
82 silly cmd,/c,node-gyp rebuild,c:\nodejs\Episodes\node_modules\contextify spawning | |
83 info contextify@0.1.3 Failed to exec install script | |
84 info c:\nodejs\Episodes\node_modules\contextify unbuild | |
85 verbose from cache c:\nodejs\Episodes\node_modules\contextify\package.json | |
86 info preuninstall contextify@0.1.3 | |
87 info uninstall contextify@0.1.3 | |
88 verbose true,c:\nodejs\Episodes\node_modules,c:\nodejs\Episodes\node_modules unbuild contextify@0.1.3 | |
89 info postuninstall contextify@0.1.3 | |
90 error contextify@0.1.3 install: `node-gyp rebuild` | |
90 error `cmd "/c" "node-gyp rebuild"` failed with 1 | |
91 error Failed at the contextify@0.1.3 install script. | |
91 error This is most likely a problem with the contextify package, | |
91 error not with npm itself. | |
91 error Tell the author that this fails on your system: | |
91 error node-gyp rebuild | |
91 error You can get their info via: | |
91 error npm owner ls contextify | |
91 error There is likely additional logging output above. | |
92 error System Windows_NT 6.1.7601 | |
93 error command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "contextify" | |
94 error cwd c:\nodejs\Episodes | |
95 error node -v v0.8.1 | |
96 error npm -v 1.1.33 | |
97 error code ELIFECYCLE | |
98 error message contextify@0.1.3 install: `node-gyp rebuild` | |
98 error message `cmd "/c" "node-gyp rebuild"` failed with 1 | |
99 verbose exit [ 1, true ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment