Problem
son@150-95-111-77:~$ npm install -g wp-local-docker
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package will recieve updates in the future
npm ERR! code 1
npm ERR! path /home/son/.nvm/versions/node/v16.3.0/lib/node_modules/wp-local-docker/node_modules/nodegit
npm ERR! command failed
npm ERR! command sh -c node lifecycleScripts/preinstall && node lifecycleScripts/install
npm ERR! [nodegit] Running pre-install script
npm ERR! [nodegit] Running install script
npm ERR! Failed to execute '/home/son/.nvm/versions/node/v16.3.0/bin/node /home/son/.nvm/versions/node/v16.3.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/home/son/.nvm/versions/node/v16.3.0/lib/node_modules/wp-local-docker/node_modules/nodegit/build/Release/nodegit.node --module_name=nodegit --module_path=/home/son/.nvm/versions/node/v16.3.0/lib/node_modules/wp-local-docker/node_modules/nodegit/build/Release --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v93' (1)
npm ERR! node-pre-gyp
npm ERR!
npm ERR! info
npm ERR!
npm ERR! it worked if it ends with
npm ERR! ok
npm ERR! node-pre-gyp
npm ERR!
npm ERR! info
npm ERR!
npm ERR! using
npm ERR! [email protected]
npm ERR! node-pre-gyp
npm ERR!
npm ERR! info
npm ERR!
npm ERR! using
npm ERR! [email protected] | linux | x64
npm ERR! node-pre-gyp WARN
npm ERR! Using request for node-pre-gyp https download
npm ERR! node-pre-gyp
npm ERR! info check checked for "/home/son/.nvm/versions/node/v16.3.0/lib/node_modules/wp-local-docker/node_modules/nodegit/build/Release/nodegit.node" (not found)
npm ERR! node-pre-gyp
npm ERR! http GET https://axonodegit.s3.amazonaws.com/nodegit/nodegit/nodegit-v0.27.0-node-v93-linux-x64.tar.gz
npm ERR! node-pre-gyp http
npm ERR! 404 https://axonodegit.s3.amazonaws.com/nodegit/nodegit/nodegit-v0.27.0-node-v93-linux-x64.tar.gz
npm ERR! node-pre-gyp
npm ERR! WARN Tried to download(404): https://axonodegit.s3.amazonaws.com/nodegit/nodegit/nodegit-v0.27.0-node-v93-linux-x64.tar.gz
npm ERR! node-pre-gyp WARN Pre-built binaries not found for [email protected] and [email protected] (node-v93 ABI, glibc) (falling back to source compile with node-gyp)
npm ERR! node-pre-gyp http 404 status code downloading tarball https://axonodegit.s3.amazonaws.com/nodegit/nodegit/nodegit-v0.27.0-node-v93-linux-x64.tar.gz
npm ERR! gyp
npm ERR! info it worked if it ends with ok
npm ERR! gyp
npm ERR! info using [email protected]
npm ERR! gyp
npm ERR! info using [email protected] | linux | x64
npm ERR! gyp
npm ERR! info ok
npm ERR! gyp
npm ERR!
npm ERR! info it worked if it ends with ok
npm ERR! gyp
npm ERR! info using [email protected]
npm ERR! gyp info using [email protected] | linux | x64
npm ERR! gyp info find Python
npm ERR! using Python version 3.8.5 found at "/usr/bin/python3"
npm ERR! (node:16489) [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
npm ERR! info spawn /usr/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args '/home/son/.nvm/versions/node/v16.3.0/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp
npm ERR! 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 '/home/son/.nvm/versions/node/v16.3.0/lib/node_modules/wp-local-docker/node_modules/nodegit/build/config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args
npm ERR! '/home/son/.nvm/versions/node/v16.3.0/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args
npm ERR! '-I',
npm ERR! gyp
npm ERR! info spawn args '/home/son/.cache/node-gyp/16.3.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=/home/son/.cache/node-gyp/16.3.0',
npm ERR! gyp info spawn args
npm ERR! '-Dnode_gyp_dir=/home/son/.nvm/versions/node/v16.3.0/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=/home/son/.cache/node-gyp/16.3.0/<(target_arch)/node.lib',
npm ERR! gyp info
npm ERR! spawn args '-Dmodule_root_dir=/home/son/.nvm/versions/node/v16.3.0/lib/node_modules/wp-local-docker/node_modules/nodegit',
npm ERR! gyp info spawn args '-Dnode_engine=v8',
npm ERR! gyp
npm ERR! info spawn args '--depth=.',
npm ERR! gyp info spawn args '--no-parallel',
npm ERR! gyp info spawn args '--generator-output',
npm ERR! gyp info
npm ERR! spawn args 'build',
npm ERR! gyp info spawn args '-Goutput_dir=.'
npm ERR! gyp
npm ERR! info spawn args ]
npm ERR! /bin/sh: 1: krb5-config: not found
npm ERR! gyp: Call to 'krb5-config gssapi --libs' returned exit status 127 while in binding.gyp. while trying to load binding.gyp
npm ERR! gyp
npm ERR! ERR! configure error
npm ERR! gyp ERR!
npm ERR! stack Error: `gyp` failed with exit code: 1
npm ERR! gyp ERR! stack at ChildProcess.onCpExit (/home/son/.nvm/versions/node/v16.3.0/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:394:28)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
npm ERR! gyp
npm ERR! ERR! System Linux 5.4.0-74-generic
npm ERR! gyp ERR!
npm ERR! command "/home/son/.nvm/versions/node/v16.3.0/bin/node" "/home/son/.nvm/versions/node/v16.3.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/home/son/.nvm/versions/node/v16.3.0/lib/node_modules/wp-local-docker/node_modules/nodegit/build/Release/nodegit.node" "--module_name=nodegit" "--module_path=/home/son/.nvm/versions/node/v16.3.0/lib/node_modules/wp-local-docker/node_modules/nodegit/build/Release" "--napi_version=8" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v93"
npm ERR! gyp ERR! cwd /home/son/.nvm/versions/node/v16.3.0/lib/node_modules/wp-local-docker/node_modules/nodegit
npm ERR! gyp ERR! node -v v16.3.0
npm ERR! gyp ERR!
npm ERR! node-gyp -v v7.1.2
npm ERR! gyp ERR! not ok
npm ERR! node-pre-gyp
npm ERR! ERR! build error
npm ERR! node-pre-gyp ERR!
npm ERR! stack Error: Failed to execute '/home/son/.nvm/versions/node/v16.3.0/bin/node /home/son/.nvm/versions/node/v16.3.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/home/son/.nvm/versions/node/v16.3.0/lib/node_modules/wp-local-docker/node_modules/nodegit/build/Release/nodegit.node --module_name=nodegit --module_path=/home/son/.nvm/versions/node/v16.3.0/lib/node_modules/wp-local-docker/node_modules/nodegit/build/Release --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v93' (1)
npm ERR! node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/home/son/.nvm/versions/node/v16.3.0/lib/node_modules/wp-local-docker/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
npm ERR! node-pre-gyp
npm ERR! ERR! stack at ChildProcess.emit (node:events:394:28)
npm ERR! node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1067:16)
npm ERR! node-pre-gyp ERR!
npm ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)
npm ERR! node-pre-gyp ERR!
npm ERR! System Linux 5.4.0-74-generic
npm ERR! node-pre-gyp ERR! command "/home/son/.nvm/versions/node/v16.3.0/bin/node" "/home/son/.nvm/versions/node/v16.3.0/lib/node_modules/wp-local-docker/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
npm ERR! node-pre-gyp ERR! cwd /home/son/.nvm/versions/node/v16.3.0/lib/node_modules/wp-local-docker/node_modules/nodegit
npm ERR! node-pre-gyp
npm ERR! ERR! node -v v16.3.0
npm ERR! node-pre-gyp
npm ERR! ERR! node-pre-gyp -v v0.13.0
npm ERR! node-pre-gyp ERR! not ok
npm ERR! [nodegit] ERROR - Could not finish install
npm ERR! [nodegit] ERROR - finished with error code: 1
npm ERR! A complete log of this run can be found in:
npm ERR! /home/son/.npm/_logs/2021-06-10T09_17_49_163Z-debug.log
Resolve
Use node version 14.17 instead of 16.x
Leave a Reply
You must be logged in to post a comment.