Date: Tue, 21 Mar 2017 20:23:02 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 217984] www/npm: cannot build native modules with node-gyp (python not found) Message-ID: <bug-217984-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D217984 Bug ID: 217984 Summary: www/npm: cannot build native modules with node-gyp (python not found) Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: Individual Port(s) Assignee: sunpoet@FreeBSD.org Reporter: bradleythughes@fastmail.fm CC: sunpoet@FreeBSD.org CC: sunpoet@FreeBSD.org Flags: maintainer-feedback?(sunpoet@FreeBSD.org), maintainer-feedback?(sunpoet@FreeBSD.org) Assignee: sunpoet@FreeBSD.org I installed node and npm via pkg, then try to install a module that needs to compile a native module. This fails because the "python" command is not fou= nd. I can work around this by running `env PYTHON=3Dpython2.7 npm i $package`. Example error: $ npm i unix-dgram > unix-dgram@2.0.0 install /usr/home/bhughes/someproject/node_modules/unix-= dgram > node-gyp rebuild gyp ERR! configure error=20 gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable. gyp ERR! stack at PythonFinder.failNoPython (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:454= :19) gyp ERR! stack at PythonFinder.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:368= :16) gyp ERR! stack at F (/usr/local/lib/node_modules/npm/node_modules/which/which.js:68:16) gyp ERR! stack at E (/usr/local/lib/node_modules/npm/node_modules/which/which.js:80:29) gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/which/which.js:89:16 gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/which/node_modules/isexe/index= .js:44:5 gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/which/node_modules/isexe/acces= s.js:8:5 gyp ERR! stack at FSReqWrap.oncomplete (fs.js:114:15) gyp ERR! System FreeBSD 11.0-RELEASE-p8 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/home/bhughes/someproject/node_modules/unix-dgram gyp ERR! node -v v7.7.3 gyp ERR! node-gyp -v v3.5.0 gyp ERR! not ok=20 npm WARN someproject No description npm WARN someproject No repository field. npm WARN someproject No license field. npm ERR! FreeBSD 11.0-RELEASE-p8 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "i" "unix-dgram" npm ERR! node v7.7.3 npm ERR! npm v4.3.0 npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! unix-dgram@2.0.0 install: `node-gyp rebuild` npm ERR! Exit status 1 npm ERR!=20 npm ERR! Failed at the unix-dgram@2.0.0 install script 'node-gyp rebuild'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the unix-dgram packa= ge, 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 information on how to open an issue for this project w= ith: npm ERR! npm bugs unix-dgram npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls unix-dgram npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR! /home/bhughes/.npm/_logs/2017-03-21T20_19_11_780Z-debug.log $ --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-217984-13>