Skip to content

'utility' file not found #1564

Closed
Closed

Description

@yerassyl94

Node Version:
node 6.5.0
npm: 6.4.1

Platform: MacOS 10.14 Mojave
Compiler: Apple LLVM version 9.1.0 (clang-902.0.39.2)
Module: npm install

Mean.js project gives this message when run npm install

/Users/user/.node-gyp/6.5.0/include/node/v8.h:21:10: fatal error: 'utility' file not found
#include

Activity

  1. yerassyl94 commented on Oct 12, 2018

    @yerassyl94
    Author

    Solved by changing MACOSX_DEPLOYMENT_TARGET from 10.7 to 10.9 in
    Users/user/.node-gyp/6.5.0/include/node/common.gypi

  2. alexventuraio commented on Oct 16, 2018

    @alexventuraio

    @yerassyl94 how exactly did you solve this? Where do you change that variable?

  3. self-assigned this
    on Oct 16, 2018
  4. refack commented on Oct 16, 2018

    @refack
    Contributor

    Solved by changing MACOSX_DEPLOYMENT_TARGET from 10.7 to 10.9 in

    Ohh you are both building with fairly old node versions...
    Maybe post a PR to nodejs/node for the v6 branch?

  5. yerassyl94 commented on Oct 16, 2018

    @yerassyl94
    Author

    @yerassyl94 how exactly did you solve this? Where do you change that variable?

    //.node-gyp/6.5.0/include/node/common.gypi
    find this file in your MacOS

  6. alexventuraio commented on Oct 16, 2018

    @alexventuraio

    @yerassyl94 Thx I could fix this too!

  7. refack commented on Oct 16, 2018

    @refack
    Contributor

    FTR, possible workaround:

    For users:

    env CXXFLAGS="-mmacosx-version-min=10.9" npm install

    For addon authors:

    add this to your bindings.gyp (but as mentioned above test)

      'xcode_settings': {
        'MACOSX_DEPLOYMENT_TARGET': '10.9',
      },
  8. alexbaumgertner commented on Nov 7, 2018

    @alexbaumgertner

    Try

    CXXFLAGS="-mmacosx-version-min=10.9" LDFLAGS="-mmacosx-version-min=10.9" npm i
    

    https://stackoverflow.com/questions/52545166/node-6-node-gyp-rebuild-for-hiredis-fails-on-macos

    It works for me, Mac OS 10.14.1 (18B75), node version 6.11.3 (legacy project)

  9. megharajsh commented on Jul 22, 2020

    @megharajsh

    Solved by changing MACOSX_DEPLOYMENT_TARGET from 10.7 to 10.9 in
    Users/user/.node-gyp/6.5.0/include/node/common.gypi

    Thanks, This resolved the issue

  10. removed their assignment
    on Jul 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions