[Bug 225562] www/npm: cannot execute node-gyp

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Jan 30 13:43:16 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=225562

            Bug ID: 225562
           Summary: www/npm: cannot execute node-gyp
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: sunpoet at FreeBSD.org
          Reporter: bhughes at freebsd.org
             Flags: maintainer-feedback?(sunpoet at FreeBSD.org)
          Assignee: sunpoet at FreeBSD.org

I've installed the latest npm (5.6.0_1) and am trying to build a native module,
but it fails when executing node-gyp:

$ npm i unix-dgram

> unix-dgram at 2.0.1 install /usr/home/bhughes/asdf/node_modules/unix-dgram
> node-gyp rebuild

sh: node-gyp: Permission denied

This is because the node-gyp executables do not have the x bit set:

$ ll /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js
/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin/node-gyp
-rw-r--r--  1 root  wheel  - 3596 Dec 15 12:44
/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js
-rw-r--r--  1 root  wheel  -  172 Nov 28 03:37
/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin/node-gyp

Setting +x manually on both of these files allows me to build native modules
again.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list