contextify
contextify copied to clipboard
install error nodejs 0.10.36
CXX(target) Release/obj.target/contextify/src/contextify.o In file included from ../src/contextify.cc:3:0: ../../nan/nan.h:328:47: error: ‘REPLACE_INVALID_UTF8’ is not a member of ‘v8::String’ static const unsigned kReplaceInvalidUtf8 = v8::String::REPLACE_INVALID_UTF8; ^ make: *** [Release/obj.target/contextify/src/contextify.o] Error 1
npm install [email protected] works fine.
Has any dependency changed?
[email protected]:~/projects/contextify$ node-gyp rebuild
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | darwin | x64
gyp info spawn python
gyp info spawn args [ '/Users/brianmcd/local/lib/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/Users/brianmcd/projects/contextify/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/brianmcd/local/lib/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/brianmcd/.node-gyp/0.10.36/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/Users/brianmcd/.node-gyp/0.10.36',
gyp info spawn args '-Dmodule_root_dir=/Users/brianmcd/projects/contextify',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.' ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
CXX(target) Release/obj.target/contextify/src/contextify.o
SOLINK_MODULE(target) Release/contextify.node
SOLINK_MODULE(target) Release/contextify.node: Finished
gyp info ok
[email protected]:~/projects/contextify$ npm test
> [email protected] test /Users/brianmcd/projects/contextify
> nodeunit test/
contextify
✔ basic tests - blank context
✔ basic tests - basic context
✔ basic tests - basic createContext
✔ basic tests - test contextified object extra properties
✔ basic tests - createContext should not modify the sandbox
✔ basic tests - test undefined sandbox
✔ basic tests - sandbox prototype properties should be searched
✔ basic tests - test for nonexistent properties
✔ basic tests - test for "undefined" properties
✔ basic tests - test for "undefined" properties with createContext
✔ basic tests - test for "undefined" variables
✔ basic tests - test run with filename
✔ basic tests - test run with createContext
✔ basic tests - test accessors on sandbox
✔ basic tests - test dispose
✔ synchronous script tests - global variables in scripts should go on sandbox
✔ synchronous script tests - sandbox properties should be globals
✔ asynchronous script tests - global variables in scripts should go on sandbox
✔ asynchronous script tests - sandbox properties should be globals
✔ asynchronous script tests - createContext: sandbox properties should be globals
✔ asynchronous script tests - setTimeout should not fail after dispose
✔ test global - basic test
✔ test global - self references to the global object
✔ test global - test enumerator
✔ test global - test deleter
✔ test global - test global class name
✔ test global - test global functions
✔ test global - test global.run()
✔ test global - test global.getGlobal()
✔ test global - test global.dispose()
✔ test global - test context delete global
✔ test global - test context delete unwritable global
✔ test multiple contexts
prop1
✔ test console
✔ test eval - basic test
✔ test eval - this test
✔ test exceptions - basic test
✔ test exceptions - test double dispose() - sandbox
✔ test exceptions - test double dispose - global
✔ test exceptions - test run() after dispose()
✔ test exceptions - test getGlobal() after dispose()
✔ test scripts - test createScript()
✔ test scripts - test createScript() without code
✔ test scripts - test runInContext
OK: 120 assertions (60ms)
[email protected]:~/projects/contextify$ node -v
v0.10.36
NAN was updated in the last release, so maybe you've still got the old dependency somehow.