title: npm ERR!: code 127. gyp ERR! stack Error: Command failed
body: <p>I'm getting the following error while doing <code>npm install</code>:</p>
  <pre><code>$ npm install
  npm ERR! code 127
  npm ERR! path /home/jesusjimenez/projects/project/node_modules/fibers
  npm ERR! command failed
  npm ERR! command sh -c node build.js || nodejs build.js
  npm ERR! gyp info it worked if it ends with ok
  npm ERR! gyp info using node-gyp@3.8.0
  npm ERR! gyp info using node@15.12.0 | linux | x64
  npm ERR! gyp ERR! configure error 
  npm ERR! gyp ERR! stack Error: Command failed: /usr/bin/python3 -c import sys; print &quot;%s.%s.%s&quot; % sys.version_info[:3];
  npm ERR! gyp ERR! stack   File &quot;&lt;string&gt;&quot;, line 1
  npm ERR! gyp ERR! stack     import sys; print &quot;%s.%s.%s&quot; % sys.version_info[:3];
  npm ERR! gyp ERR! stack                       ^
  npm ERR! gyp ERR! stack SyntaxError: invalid syntax
  npm ERR! gyp ERR! stack 
  npm ERR! gyp ERR! stack     at ChildProcess.exithandler (node:child_process:326:12)
  npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:369:20)
  npm ERR! gyp ERR! stack     at maybeClose (node:internal/child_process:1067:16)
  npm ERR! gyp ERR! stack     at Socket.&lt;anonymous&gt; (node:internal/child_process:453:11)
  npm ERR! gyp ERR! stack     at Socket.emit (node:events:369:20)
  npm ERR! gyp ERR! stack     at Pipe.&lt;anonymous&gt; (node:net:665:12)
  npm ERR! gyp ERR! System Linux 5.8.0-48-generic
  npm ERR! gyp ERR! command &quot;/usr/bin/node&quot; &quot;/home/jesusjimenez/projects/project/node_modules/.bin/node-gyp&quot; &quot;rebuild&quot; &quot;--release&quot;
  npm ERR! gyp ERR! cwd /home/jesusjimenez/projects/project/node_modules/fibers
  npm ERR! gyp ERR! node -v v15.12.0
  npm ERR! gyp ERR! node-gyp -v v3.8.0
  npm ERR! gyp ERR! not ok 
  npm ERR! node-gyp exited with code: 1
  npm ERR! Please make sure you are using a supported platform and node version. If you
  npm ERR! would like to compile fibers on this machine please make sure you have setup your
  npm ERR! build environment--
  npm ERR! Windows + OS X instructions here: https://github.com/nodejs/node-gyp
  npm ERR! Ubuntu users please run: `sudo apt-get install g++ build-essential`
  npm ERR! RHEL users please run: `yum install gcc-c++` and `yum groupinstall 'Development Tools'` 
  npm ERR! Alpine users please run: `sudo apk add python make g++`
  npm ERR! sh: 1: nodejs: not found
  
  npm ERR! A complete log of this run can be found in:
  npm ERR!     /home/jesusjimenez/.npm/_logs/2021-03-30T21_32_02_097Z-debug.log
  </code></pre>
  <p>I'm not completely sure what is breaking the install, if fibers or somehow that python <code>SyntaxError: invalid syntax</code>
  However, trying to install fibers individually throws same error. <code>npm i -g fibers</code> doesn't fix, neither changing <code>npm configure set python /path/to/python</code>. Deleting fibers momentarily keeps throwing same Python <code>SyntaxError: invalid syntax</code> error, this time with another node_module.</p>