-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
I failed to install cluster2 using npm install cluster2
My setup:
npm 7.10.0
node v16.0.0
macOS 11.3
MacBook Air M1 2020
Output:
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: 'npm@1.3.26',
npm WARN EBADENGINE required: { node: '>=0.6', npm: '1' },
npm WARN EBADENGINE current: { node: 'v16.0.0', npm: '7.10.0' }
npm WARN EBADENGINE }
npm WARN deprecated mkdirp@0.3.0: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm WARN deprecated express@2.5.11: express 2.x series is deprecated
npm WARN deprecated ejs@0.8.8: Critical security bugs fixed in 2.5.5
npm WARN deprecated connect@1.9.2: connect 1.x series is deprecated
npm ERR! code 1
npm ERR! path /Users/.../cluster-test/node_modules/usage
npm ERR! command failed
npm ERR! command sh -c node-gyp rebuild
npm ERR! CXX(target) Release/obj.target/sysinfo/src/binding.o
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@7.1.2
npm ERR! gyp info using node@16.0.0 | darwin | arm64
npm ERR! gyp info find Python using Python version 3.9.4 found at "/opt/homebrew/opt/python@3.9/bin/python3.9"
npm ERR! (node:67193) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only.
npm ERR! (Use `node --trace-deprecation ...` to show where the warning was created)
npm ERR! gyp info spawn /opt/homebrew/opt/python@3.9/bin/python3.9
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args '/opt/homebrew/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args 'binding.gyp',
npm ERR! gyp info spawn args '-f',
npm ERR! gyp info spawn args 'make',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/Users/.../cluster-test/node_modules/usage/build/config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/opt/homebrew/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/Users/.../Library/Caches/node-gyp/16.0.0/include/node/common.gypi',
npm ERR! gyp info spawn args '-Dlibrary=shared_library',
npm ERR! gyp info spawn args '-Dvisibility=default',
npm ERR! gyp info spawn args '-Dnode_root_dir=/Users/.../Library/Caches/node-gyp/16.0.0',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=/opt/homebrew/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=/Users/.../Library/Caches/node-gyp/16.0.0/<(target_arch)/node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=/Users/.../cluster-test/node_modules/usage',
npm ERR! gyp info spawn args '-Dnode_engine=v8',
npm ERR! gyp info spawn args '--depth=.',
npm ERR! gyp info spawn args '--no-parallel',
npm ERR! gyp info spawn args '--generator-output',
npm ERR! gyp info spawn args 'build',
npm ERR! gyp info spawn args '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp info spawn make
npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm ERR! ../src/binding.cpp:5:21: error: no template named 'Handle'
npm ERR! void RegisterModule(Handle<Object> target) {
npm ERR! ^
npm ERR! ../src/binding.cpp:17:25: error: no member named 'NewSymbol' in 'v8::String'
npm ERR! target->Set(String::NewSymbol("OS"), String::New(OS));
npm ERR! ~~~~~~~~^
npm ERR! ../src/binding.cpp:17:50: error: no member named 'New' in 'v8::String'
npm ERR! target->Set(String::NewSymbol("OS"), String::New(OS));
npm ERR! ~~~~~~~~^
npm ERR! 3 errors generated.
npm ERR! make: *** [Release/obj.target/sysinfo/src/binding.o] Error 1
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
npm ERR! gyp ERR! stack at ChildProcess.onExit (/opt/homebrew/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:365:28)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
npm ERR! gyp ERR! System Darwin 20.4.0
npm ERR! gyp ERR! command "/opt/homebrew/Cellar/node/16.0.0/bin/node" "/opt/homebrew/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd /Users/.../github/playgra/cluster-test/node_modules/usage
npm ERR! gyp ERR! node -v v16.0.0
npm ERR! gyp ERR! node-gyp -v v7.1.2
npm ERR! gyp ERR! not ok
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/.../.npm/_logs/2021-04-30T14_04_35_217Z-debug.log...
Metadata
Metadata
Assignees
Labels
No labels