Skip to content
This repository was archived by the owner on Dec 9, 2018. It is now read-only.
This repository was archived by the owner on Dec 9, 2018. It is now read-only.

Failing install on OS X Yosemite #184

Closed

Description

@lubomski

seeing error when installing node package html-md; error log reporting contextify as the culprit

node 4.1.1
npm 2.14.4

14 errors generated.
make: *** [Release/obj.target/contextify/src/contextify.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Darwin 14.5.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/contextify
gyp ERR! node -v v4.1.1
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok 
npm ERR! Darwin 14.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "contextify" "-g"
npm ERR! node v4.1.1
npm ERR! npm  v2.14.4
npm ERR! code ELIFECYCLE

npm ERR! contextify@0.1.14 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the contextify@0.1.14 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the contextify package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls contextify
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/USERNAME/npm-debug.log

Full log: https://gist.github.com/lubomski/3e2b68254885ae2c0a9b

Activity

  1. gouthamve commented on Oct 1, 2015

    @gouthamve

    +1

  2. mattmischuk commented on Oct 2, 2015

    @mattmischuk

    +1

  3. mattmischuk commented on Oct 2, 2015

    @mattmischuk

    This is related to node 4.*, switch to node 0.12.* and install works fine.

  4. aschiopu commented on Oct 2, 2015

    @aschiopu

    switching to node 0.12.* did not work for me :(, same issue however

  5. egbertp commented on Oct 4, 2015

    @egbertp

    I had the same problem, solved it by:

    • Updating to the latest Xcode v7.0.1 (7A1001)
    • Re-installed node-gyp.
    $ rm -Rf node_modules  
    $ npm install node-gyp --reinstall -g
    $ npm install
    

    I hope it helps you @aschiopu

  6. GC-Max commented on Oct 5, 2015

    @GC-Max

    +1
    All of the above solutions have not worked for me.

  7. mattmischuk commented on Oct 5, 2015

    @mattmischuk

    @GC-Max have you tried reinstalling node?

  8. GC-Max commented on Oct 5, 2015

    @GC-Max

    @mattmischuk Yes I was using 4. Then installed nvm and installed version 0.12.* and used that. Same issue

  9. machikoyasuda commented on Oct 6, 2015

    @machikoyasuda

    Using nvm to install version 0.12.7 and then reinstalling fixed the issue for me.

  10. mitranim commented on Oct 6, 2015

    @mitranim

    With Node.js 4.1.2, contextify was failing to install until I rolled back to Node.js 0.12.7 (on OS X 10.11). This is really sad. Please fix.

  11. cnewfeldt commented on Oct 8, 2015

    @cnewfeldt

    I'm seeing the same issue on Mac OS 10.11 with node v4.1.2. I downgraded to Node v0.12.7 and the installation was successful.

  12. queimadus commented on Oct 9, 2015

    @queimadus

    +1
    Breaks in node 4.0.*. Downgraded to node 0.12.* meanwhile.

  13. katiesandford commented on Oct 9, 2015

    @katiesandford

    $ node -v
    v0.12.7

    $ npm -v
    2.14.4

    $ node-gyp -v
    v3.0.3

    npm install contextify still breaks on node-gyp rebuild

  14. rdinse commented on Oct 10, 2015

    @rdinse

    You can downgrade easily with Homebrew:

    brew uninstall node
    brew install homebrew/versions/node012
    
  15. katiesandford commented on Oct 10, 2015

    @katiesandford

    Node v0.12 only worked for me when I upgraded OSX to 10.11.

  16. MitchLillie commented on Oct 13, 2015

    @MitchLillie

    +1

    Downgrading to 0.12.7 via nvm works for now.

    Working:

    $ sw_vers
    ProductName:    Mac OS X
    ProductVersion: 10.11
    BuildVersion:   XXXXXX
    $ node -v
    v0.12.7
    $ node-gyp -v
    v3.0.3
    
  17. gravidThoughts commented on Oct 20, 2015

    @gravidThoughts

    See #180
    Pull request to deal with this issue #181. Not promising as the last meaningful comment was posted over a month ago.

  18. brianmcd commented on Nov 12, 2015

    @brianmcd
    Owner

    Fixed in 0.1.15

  19. StephanBijzitter commented on Feb 9, 2016

    @StephanBijzitter

    @brianmcd

    Nope, not really.

    1770 verbose stack Error: contextify@0.1.15 install: `node-gyp rebuild`
    1770 verbose stack Exit status 1
    1770 verbose stack     at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/lib/utils/lifecycle.js:232:16)
    1770 verbose stack     at emitTwo (events.js:100:13)
    1770 verbose stack     at EventEmitter.emit (events.js:185:7)
    1770 verbose stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/lib/utils/spawn.js:24:14)
    1770 verbose stack     at emitTwo (events.js:100:13)
    1770 verbose stack     at ChildProcess.emit (events.js:185:7)
    1770 verbose stack     at maybeClose (internal/child_process.js:821:16)
    1770 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
    1771 verbose pkgid contextify@0.1.15
    1772 verbose cwd /vagrant
    1773 error Linux 3.13.0-77-generic
    1774 error argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "fabric" "--save" "--unsafe-perm" "--no-bin-links"
    1775 error node v5.5.0
    1776 error npm  v3.3.12
    1777 error code ELIFECYCLE
    1778 error contextify@0.1.15 install: `node-gyp rebuild`
    1778 error Exit status 1
    1779 error Failed at the contextify@0.1.15 install script 'node-gyp rebuild'.
    1779 error Make sure you have the latest version of node.js and npm installed.
    1779 error If you do, this is most likely a problem with the contextify package,
    1779 error not with npm itself.
    1779 error Tell the author that this fails on your system:
    1779 error     node-gyp rebuild
    1779 error You can get their info via:
    1779 error     npm owner ls contextify
    1779 error There is likely additional logging output above.
    1780 verbose exit [ 1, true ]
    

    npm 3.3.12
    node 5.5.0
    node-gyp 3.2.1

  20. brianmcd commented on Feb 9, 2016

    @brianmcd
    Owner

    @StephanBijzitter that's a problem with your environment, not contextify

  21. StephanBijzitter commented on Feb 9, 2016

    @StephanBijzitter

    @brianmcd how so? According to the contextify setup guidelines I meet every requirement.
    https://github.com/nodejs/node-gyp#installation

    Any other package reliant on node-gyp installs without issues; only this package refuses to install. In that sense, I would say it is at least related to contextify.

    #!/usr/bin/env bash
    
    echo "Updating APT database..."
    sudo apt-get update -y || exit 1
    
    echo "Installing APT packages..."
    sudo apt-get install pkg-config libcairo2-dev libjpeg-dev libgif-dev -y
    
    echo "Installing Ruby Gems..."
    sudo gem install scss-lint
    
    echo "Installing NodeJS..."
    curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash - || exit 1
    sudo apt-get install -y nodejs || exit 1
    
    echo "Entering SuperUser mode..."
    sudo su || exit 1
    
    echo "Installing global NodeJS packages..."
    npm install grunt-cli node-gyp -g || exit 1
    
    echo "Installing local NodeJS packages..."
    cd /vagrant || exit 1
        rm -rf node_modules || exit 1
        npm install || exit 1
    cd - || exit 1
    
  22. brianmcd commented on Feb 9, 2016

    @brianmcd
    Owner

    @StephanBijzitter

    brianmcd@Brians-MacBook-Pro.local:~/scratch/test_install$ npm install contextify
    
    > contextify@0.1.15 install /Users/brianmcd/scratch/test_install/node_modules/contextify
    > node-gyp rebuild
    
      CXX(target) Release/obj.target/contextify/src/contextify.o
      SOLINK_MODULE(target) Release/contextify.node
    /Users/brianmcd/scratch/test_install
    └─┬ contextify@0.1.15
      ├── bindings@1.2.1
      └── nan@2.2.0
    brianmcd@Brians-MacBook-Pro.local:~/scratch/test_install$ node -v
    v5.5.0
    brianmcd@Brians-MacBook-Pro.local:~/scratch/test_install$ npm -v
    3.3.12
    brianmcd@Brians-MacBook-Pro.local:~/scratch/test_install$ node-gyp -v
    v3.2.1
    
  23. brianmcd commented on Feb 9, 2016

    @brianmcd
    Owner

    Could be related to installing everything as root.

  24. gsamat commented on Apr 22, 2016

    @gsamat

    I don't use sudo for this, see exactly the same error

    npm ERR! node v5.11.0
    npm ERR! npm  v3.8.6
    
    npm ERR! Failed at the contextify@0.1.15 install script 'node-gyp rebuild'.
    
  25. rfanjul commented on Feb 19, 2017

    @rfanjul

    +1

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions