Skip to content

Instantly share code, notes, and snippets.

@jacobbogers
Created March 19, 2019 17:40
Show Gist options
  • Save jacobbogers/8afee3af8cdd6821841f080fec1bfbef to your computer and use it in GitHub Desktop.
Save jacobbogers/8afee3af8cdd6821841f080fec1bfbef to your computer and use it in GitHub Desktop.
node-gyp issues with npm posix module
root@17567133b053:/home/eds/eds-relay-service# npm install [email protected] --save --verbose
npm info it worked if it ends with ok
npm verb cli [ '/root/.nvm/versions/node/v10.8.0/bin/node',
npm verb cli '/root/.nvm/versions/node/v10.8.0/bin/npm',
npm verb cli 'install',
npm verb cli '[email protected]',
npm verb cli '--save',
npm verb cli '--verbose' ]
npm info using [email protected]
npm info using [email protected]
npm verb npm-session bde8ad16a9173605
npm http fetch GET 200 https://registry.npmjs.org/posix 11ms (from cache)
npm timing stage:loadCurrentTree Completed in 870ms
npm timing stage:loadIdealTree:cloneCurrentTree Completed in 2ms
npm timing stage:loadIdealTree:loadShrinkwrap Completed in 142ms
npm timing stage:loadIdealTree:loadAllDepsIntoIdealTree Completed in 305ms
npm timing stage:loadIdealTree Completed in 495ms
npm timing stage:generateActionsToTake Completed in 55ms
npm verb correctMkdir /root/.npm/_locks correctMkdir not in flight; initializing
npm verb lock using /root/.npm/_locks/staging-54dbb2f095ec6155.lock for /home/eds/eds-relay-service/node_modules/.staging
npm timing audit compress Completed in 3ms
npm info audit Submitting payload of 11535bytes
npm timing action:extract Completed in 115ms
npm info lifecycle undefined~preuninstall: undefined
npm info lifecycle undefined~uninstall: undefined
npm timing action:unbuild Completed in 3ms
npm timing action:remove Completed in 0ms
npm timing action:finalize Completed in 11ms
npm timing action:refresh-package-json Completed in 17ms
npm info lifecycle [email protected]~preinstall: [email protected]
npm timing action:preinstall Completed in 1ms
npm info linkStuff [email protected]
npm timing action:build Completed in 1ms
npm info lifecycle [email protected]~install: [email protected]
> [email protected] install /home/eds/eds-relay-service/node_modules/posix
> node-gyp rebuild
gyp info it worked if it ends with ok
gyp verb cli [ '/root/.nvm/versions/node/v10.8.0/bin/node',
gyp verb cli '/root/.nvm/versions/node/v10.8.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js',
gyp verb cli 'rebuild' ]
gyp info using [email protected]
gyp info using [email protected] | linux | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp verb download using dist-url https://nodejs.org/dist
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb `which` succeeded python2 /usr/bin/python2
gyp verb check python version `/usr/bin/python2 -c "import platform; print(platform.python_version());"` returned: "2.7.15rc1\n"
gyp verb get node dir no --target version specified, falling back to host node version: 10.8.0
gyp verb command install [ '10.8.0' ]
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp verb download using dist-url https://nodejs.org/dist
gyp verb install input version string "10.8.0"
gyp verb install installing version: 10.8.0
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version is already installed, need to check "installVersion"
gyp verb got "installVersion" 9
gyp verb needs "installVersion" 9
gyp verb install version is good
gyp verb get node dir target node version installed: 10.8.0
gyp verb build dir attempting to create "build" dir: /home/eds/eds-relay-service/node_modules/posix/build
gyp verb build dir "build" dir needed to be created? /home/eds/eds-relay-service/node_modules/posix/build
gyp verb build/config.gypi creating config file
gyp verb build/config.gypi writing out config file: /home/eds/eds-relay-service/node_modules/posix/build/config.gypi
gyp verb config.gypi checking for gypi file: /home/eds/eds-relay-service/node_modules/posix/config.gypi
gyp verb common.gypi checking for gypi file: /home/eds/eds-relay-service/node_modules/posix/common.gypi
gyp verb gyp gyp format was not specified; forcing "make"
gyp info spawn /usr/bin/python2
gyp info spawn args [ '/root/.nvm/versions/node/v10.8.0/lib/node_modules/npm/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 '/home/eds/eds-relay-service/node_modules/posix/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/root/.nvm/versions/node/v10.8.0/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/root/.node-gyp/10.8.0/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/root/.node-gyp/10.8.0',
gyp info spawn args '-Dnode_gyp_dir=/root/.nvm/versions/node/v10.8.0/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/root/.node-gyp/10.8.0/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/home/eds/eds-relay-service/node_modules/posix',
gyp info spawn args '-Dnode_engine=v8',
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 verb command build []
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp verb download using dist-url https://nodejs.org/dist
gyp verb build type Release
gyp verb architecture x64
gyp verb node dev dir /root/.node-gyp/10.8.0
gyp verb `which` succeeded for `make` /home/eds/eds-relay-service/node_modules/.bin/make
gyp info spawn make
gyp info spawn args [ 'V=1', 'BUILDTYPE=Release', '-C', 'build' ]
make ✖ ERR Missing Makefile / Bakefile
make ℹ info Run "make init" to generate a Makefile.
gyp info ok
npm verb lifecycle [email protected]~install: unsafe-perm in lifecycle false
npm verb lifecycle [email protected]~install: PATH: /root/.nvm/versions/node/v10.8.0/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/eds/eds-relay-service/node_modules/posix/node_modules/.bin:/home/eds/eds-relay-service/node_modules/.bin:/root/.nvm/versions/node/v10.8.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
npm verb lifecycle [email protected]~install: CWD: /home/eds/eds-relay-service/node_modules/posix
npm timing audit submit Completed in 397ms
npm http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/audits/quick 396ms
npm timing audit body Completed in 1ms
npm timing action:install Completed in 908ms
npm info lifecycle [email protected]~postinstall: [email protected]
npm timing action:postinstall Completed in 0ms
npm verb unlock done using /root/.npm/_locks/staging-54dbb2f095ec6155.lock for /home/eds/eds-relay-service/node_modules/.staging
npm timing stage:executeActions Completed in 1095ms
npm timing stage:rollbackFailedOptional Completed in 0ms
npm timing stage:runTopLevelLifecycles Completed in 2559ms
npm verb saving [ { name: 'posix', spec: '^4.1.2', save: 'dependencies' } ]
npm verb shrinkwrap skipping write for package.json because there were no changes.
npm info lifecycle undefined~preshrinkwrap: undefined
npm info lifecycle undefined~shrinkwrap: undefined
npm verb shrinkwrap skipping write for package-lock.json because there were no changes.
npm info lifecycle undefined~postshrinkwrap: undefined
+ [email protected]
updated 1 package and audited 479 packages in 2.668s
found 20 vulnerabilities (12 low, 2 moderate, 5 high, 1 critical)
run `npm audit fix` to fix them, or `npm audit` for details
npm verb exit [ 0, true ]
npm timing npm Completed in 2869ms
npm info ok
root@17567133b053:/home/eds/eds-relay-service#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment