Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error installing on macos using documented commands #377

Open
keul opened this issue May 19, 2023 · 1 comment
Open

Error installing on macos using documented commands #377

keul opened this issue May 19, 2023 · 1 comment

Comments

@keul
Copy link

keul commented May 19, 2023

Description

Cannot install on a fresh node 18 env on macos

Steps to reproduce

  • Installed latest node 18 (v18.16.0, but also tested v18.1.0)
  • npx gatsby new xxxxx https://github.com/Vagr9K/gatsby-material-starter

Actual result

success Created starter directory layout
info Installing packages...

npm ERR! code 1
npm ERR! path /Users/keul/projects/scrivere.keul.it/node_modules/lmdb-store
npm ERR! command failed
npm ERR! command sh -c node-gyp-build
npm ERR! make: Entering directory '/Users/keul/projects/scrivere.keul.it/node_modules/lmdb-store/build'
npm ERR!   CC(target) Release/obj.target/lmdb-store/dependencies/lmdb/libraries/liblmdb/midl.o
npm ERR!   CC(target) Release/obj.target/lmdb-store/dependencies/lmdb/libraries/liblmdb/chacha8.o
npm ERR!   CC(target) Release/obj.target/lmdb-store/dependencies/lz4/lib/lz4.o
npm ERR!   CXX(target) Release/obj.target/lmdb-store/src/node-lmdb.o
npm ERR!   CXX(target) Release/obj.target/lmdb-store/src/env.o
npm ERR!   CXX(target) Release/obj.target/lmdb-store/src/compression.o
npm ERR!   CXX(target) Release/obj.target/lmdb-store/src/ordered-binary.o
npm ERR! make: Leaving directory '/Users/keul/projects/scrivere.keul.it/node_modules/lmdb-store/build'
npm ERR! In file included from ../src/node-lmdb.cpp:24:
npm ERR! In file included from ../src/node-lmdb.h:32:
npm ERR! ../../nan/nan.h:2544:8: warning: 'SetAccessor' is deprecated: Do signature check in accessor [-Wdeprecated-declarations]
npm ERR!   tpl->SetAccessor(
npm ERR!        ^
npm ERR! /Users/keul/Library/Caches/node-gyp/18.16.0/include/node/v8-template.h:837:3: note: 'SetAccessor' has been explicitly marked deprecated here
npm ERR!   V8_DEPRECATED("Do signature check in accessor")
npm ERR!   ^
npm ERR! /Users/keul/Library/Caches/node-gyp/18.16.0/include/node/v8config.h:460:35: note: expanded from macro 'V8_DEPRECATED'
npm ERR! # define V8_DEPRECATED(message) [[deprecated(message)]]
npm ERR!                                   ^
npm ERR! 1 warning generated.
npm ERR! In file included from ../src/env.cpp:25:
npm ERR! In file included from ../src/node-lmdb.h:32:
npm ERR! ../../nan/nan.h:2544:8: warning: 'SetAccessor' is deprecated: Do signature check in accessor [-Wdeprecated-declarations]
npm ERR!   tpl->SetAccessor(
npm ERR!        ^
npm ERR! /Users/keul/Library/Caches/node-gyp/18.16.0/include/node/v8-template.h:837:3: note: 'SetAccessor' has been explicitly marked deprecated here
npm ERR!   V8_DEPRECATED("Do signature check in accessor")
npm ERR!   ^
npm ERR! /Users/keul/Library/Caches/node-gyp/18.16.0/include/node/v8config.h:460:35: note: expanded from macro 'V8_DEPRECATED'
npm ERR! # define V8_DEPRECATED(message) [[deprecated(message)]]
npm ERR!                                   ^
npm ERR! 1 warning generated.
npm ERR! In file included from ../src/compression.cpp:26:
npm ERR! In file included from ../src/node-lmdb.h:32:
npm ERR! ../../nan/nan.h:2544:8: warning: 'SetAccessor' is deprecated: Do signature check in accessor [-Wdeprecated-declarations]
npm ERR!   tpl->SetAccessor(
npm ERR!        ^
npm ERR! /Users/keul/Library/Caches/node-gyp/18.16.0/include/node/v8-template.h:837:3: note: 'SetAccessor' has been explicitly marked deprecated here
npm ERR!   V8_DEPRECATED("Do signature check in accessor")
npm ERR!   ^
npm ERR! /Users/keul/Library/Caches/node-gyp/18.16.0/include/node/v8config.h:460:35: note: expanded from macro 'V8_DEPRECATED'
npm ERR! # define V8_DEPRECATED(message) [[deprecated(message)]]
npm ERR!                                   ^
npm ERR! 1 warning generated.
npm ERR! In file included from ../src/ordered-binary.cpp:1:
npm ERR! In file included from ../src/node-lmdb.h:32:
npm ERR! ../../nan/nan.h:2544:8: warning: 'SetAccessor' is deprecated: Do signature check in accessor [-Wdeprecated-declarations]
npm ERR!   tpl->SetAccessor(
npm ERR!        ^
npm ERR! /Users/keul/Library/Caches/node-gyp/18.16.0/include/node/v8-template.h:837:3: note: 'SetAccessor' has been explicitly marked deprecated here
npm ERR!   V8_DEPRECATED("Do signature check in accessor")
npm ERR!   ^
npm ERR! /Users/keul/Library/Caches/node-gyp/18.16.0/include/node/v8config.h:460:35: note: expanded from macro 'V8_DEPRECATED'
npm ERR! # define V8_DEPRECATED(message) [[deprecated(message)]]
npm ERR!                                   ^
npm ERR! ../src/ordered-binary.cpp:138:92: error: too few arguments to function call, single argument 'isolate' was not specified
npm ERR!         Local<String> string = Local<String>::Cast(Local<Symbol>::Cast(jsKey)->Description());
npm ERR!                                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
npm ERR! /Users/keul/Library/Caches/node-gyp/18.16.0/include/node/v8-primitive.h:588:16: note: 'Description' declared here
npm ERR!   Local<Value> Description(Isolate* isolate) const;
npm ERR!                ^
npm ERR! 1 warning and 1 error generated.
npm ERR! make: *** [lmdb-store.target.mk:151: Release/obj.target/lmdb-store/src/ordered-binary.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 (/Users/keul/.nvm/versions/node/v18.16.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:203:23)
npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:513:28)
npm ERR! gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:291:12)
npm ERR! gyp ERR! System Darwin 21.6.0
npm ERR! gyp ERR! command "/Users/keul/.nvm/versions/node/v18.16.0/bin/node" "/Users/keul/.nvm/versions/node/v18.16.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd /Users/keul/projects/scrivere.keul.it/node_modules/lmdb-store
npm ERR! gyp ERR! node -v v18.16.0
npm ERR! gyp ERR! node-gyp -v v9.3.1
npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in:

 ERROR  UNKNOWN

Command failed with exit code 1: npm install --loglevel error --color always --legacy-peer-deps --no-audit



  Error: Command failed with exit code 1: npm install --loglevel error --color always --legacy-peer-deps --no-audit

  - error.js:60 makeError
    [6a76b9237e625090]/[execa]/lib/error.js:60:11

  - index.js:118 handlePromise
    [6a76b9237e625090]/[execa]/index.js:118:26

  - task_queues:95 processTicksAndRejections
    node:internal/process/task_queues:95:5

  - init-starter.js:108 install
    [6a76b9237e625090]/[gatsby-cli]/lib/init-starter.js:108:7

  - init-starter.js:163 clone
    [6a76b9237e625090]/[gatsby-cli]/lib/init-starter.js:163:3

  - init-starter.js:285 initStarter
    [6a76b9237e625090]/[gatsby-cli]/lib/init-starter.js:285:5

  - create-cli.js:401
    [6a76b9237e625090]/[gatsby-cli]/lib/create-cli.js:401:9

Environment

Run gatsby info --clipboard in your project directory and paste the output here. Not working? You may need to update your global gatsby-cli - npm install -g gatsby-cli

$ npx gatsby info --clipboard

  System:
    OS: macOS 12.6.5
    CPU: (4) x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 18.16.0 - ~/.nvm/versions/node/v18.16.0/bin/node
    Yarn: 1.22.4 - ~/.yarn/bin/yarn
    npm: 9.5.1 - ~/.nvm/versions/node/v18.16.0/bin/npm
  Languages:
    Python: 3.10.11 - /usr/local/Caskroom/miniconda/base/envs/copds/bin/python
  Browsers:
    Chrome: 113.0.5672.126
    Firefox: 113.0.1
    Safari: 16.4.1
@kjakich
Copy link

kjakich commented May 5, 2024

Same issue. Seems to be a dependency conflict, but have tried with node 16 and 18 and 20 as well as removing some other bits and pieces to no avail. Maybe there is an issue with lmdb ? Would love a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants