node-gyp icon indicating copy to clipboard operation
node-gyp copied to clipboard

Invalid version number

Open minchopm opened this issue 2 years ago • 1 comments

I am using Mac M1, Python 3.10, node 18.12.1 and I am having this error when I try to rebuild the leveldown package. % node-gyp rebuild --target arm64 --arch arm64

gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | darwin | arm64
gyp info find Python using Python version 3.10.6 found at "/opt/local/bin/python3"
gyp ERR! configure error 
gyp ERR! stack Error: Invalid version number: true
gyp ERR! stack     at getNodeDir (/Users/minchomilev/.nvm/versions/node/v18.12.1/lib/node_modules/node-gyp/lib/configure.js:57:25)
gyp ERR! stack     at /Users/minchomilev/.nvm/versions/node/v18.12.1/lib/node_modules/node-gyp/lib/configure.js:31:7
gyp ERR! stack     at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
gyp ERR! System Darwin 22.5.0

minchopm avatar Aug 10 '23 21:08 minchopm

  • Level/leveldown#825
    • 📌 This module will soon be Level/community#113, because it is superseded by classic-level...
  • Level/classic-level#83

@minchopm Are you able to upgrade to classic-level which is replacing leveldown?

cclauss avatar Aug 23 '23 14:08 cclauss