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

napi and sodium integration issue #61

Closed
andrewkslv opened this issue Sep 3, 2017 · 2 comments
Closed

napi and sodium integration issue #61

andrewkslv opened this issue Sep 3, 2017 · 2 comments

Comments

@andrewkslv
Copy link
Member

andrewkslv commented Sep 3, 2017

New project from master generates error on yarn install on osx

nodejs-api-starter/node_modules/node-addon-api/napi.h:6:10: fatal error: 'initializer_list' file not found
#include <initializer_list>

If I add missing config into binding.gyp

      "defines": ["NAPI_CPP_EXCEPTIONS"],
      "xcode_settings": {
        "GCC_ENABLE_CPP_EXCEPTIONS": "YES",
        "CLANG_CXX_LIBRARY": "libc++",
        "MACOSX_DEPLOYMENT_TARGET": "10.7",
      },
      "msvs_settings": {
        "VCCLCompilerTool": { "ExceptionHandling": 1 },
      },

It still requires missing module

/src/utils/password_hash.cc:2:10: fatal error: 'sodium.h' file not found
@koistya
Copy link
Member

koistya commented Sep 4, 2017

@eclipticwld it's better to run yarn install from under the Doker container:

$ docker-compose run --rm --no-deps api yarn install

@andrewkslv
Copy link
Member Author

@koistya I see. Thank you.

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