[GH-ISSUE #177] create-proton-app fails to create app #112

Closed
opened 2026-05-05 11:44:03 -06:00 by gitea-mirror · 5 comments
Owner

Originally created by @wildapt01 on GitHub (Sep 20, 2018).
Original GitHub issue: https://github.com/kusti8/proton-native/issues/177

Environment: Linux Ubuntu 18.04 on Surface Book 2 (Custom kernel, based on 4.17), Node 10.8, fresh update/upgrade. libgtk-3-dev and build-essential are in place. Python3 is in place.

Trying to create my app folder, but got the following errors (sorry, long!):

> node-gyp configure build


gyp
 
ERR! configure error 

gyp
 ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp 
ERR! stack     at PythonFinder.failNoPython (/home/patrick/.nvm/versions/node/v10.8.0/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:492:19)
gyp ERR! stack
     at PythonFinder.<anonymous> (/home/patrick/.nvm/versions/node/v10.8.0/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:406:16)
gyp ERR! stack     at F (/home/patrick/.nvm/versions/node/v10.8.0/lib/node_modules/npm/node_modules/which/which.js:68:16)
gyp
 ERR! stack     at E (/home/patrick/.nvm/versions/node/v10.8.0/lib/node_modules/npm/node_modules/which/which.js:80:29)
gyp ERR!
 stack     at /home/patrick/.nvm/versions/node/v10.8.0/lib/node_modules/npm/node_modules/which/which.js:89:16
gyp ERR! stack
     at /home/patrick/.nvm/versions/node/v10.8.0/lib/node_modules/npm/node_modules/isexe/index.js:42:5
gyp ERR! stack     at /home/patrick/.nvm/versions/node/v10.8.0/lib/node_modules/npm/node_modules/isexe/mode.js:8:5
gyp
 ERR! stack     at FSReqWrap.oncomplete (fs.js:152:21)

gyp
 ERR! System Linux 4.17.3-surface-linux-surface

gyp
 ERR! command "/home/patrick/.nvm/versions/node/v10.8.0/bin/node" "/home/patrick/.nvm/versions/node/v10.8.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build"

gyp ERR! cwd /home/patrick/mockingbird/node_modules/libui-node

gyp ERR! node -v v10.8.0
gyp
 ERR! node-gyp -v v3.7.0
gyp
 ERR! not ok 

npm ERR! 
code ELIFECYCLE

npm
 ERR! errno 1

npm ERR! libui-node@0.2.1 build: `node-gyp configure build`
npm
 ERR! Exit status 1
npm 
ERR! 
npm ERR! Failed at the libui-node@0.2.1 build script.
npm
 ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm WARN
 Local package.json exists, but node_modules missing, did you mean to install?



npm ERR! A complete log of this run can be found in:
npm ERR!     /home/patrick/.npm/_logs/2018-09-20T00_10_22_092Z-debug.log

npm 
WARN ajv-keywords@3.2.0 requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself.

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents):
npm WARN
 notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})



npm
 ERR! code ELIFECYCLE

npm
 ERR! errno 1

npm ERR! libui-node@0.2.1 install: `libui-download && autogypi && npm run build`
npm ERR! Exit status 1

npm ERR! 
npm ERR!
 Failed at the libui-node@0.2.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.


npm
 ERR! A complete log of this run can be found in:
npm ERR!     /home/patrick/.npm/_logs/2018-09-20T00_10_22_390Z-debug.log


An error ocurred: 
 npm install has failed.

Any idea on how to fix it?

Thanks in advance.

Originally created by @wildapt01 on GitHub (Sep 20, 2018). Original GitHub issue: https://github.com/kusti8/proton-native/issues/177 Environment: Linux Ubuntu 18.04 on Surface Book 2 (Custom kernel, based on 4.17), Node 10.8, fresh update/upgrade. libgtk-3-dev and build-essential are in place. Python3 is in place. Trying to create my app folder, but got the following errors (sorry, long!): ``` > node-gyp configure build gyp ERR! configure error gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable. gyp ERR! stack at PythonFinder.failNoPython (/home/patrick/.nvm/versions/node/v10.8.0/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:492:19) gyp ERR! stack at PythonFinder.<anonymous> (/home/patrick/.nvm/versions/node/v10.8.0/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:406:16) gyp ERR! stack at F (/home/patrick/.nvm/versions/node/v10.8.0/lib/node_modules/npm/node_modules/which/which.js:68:16) gyp ERR! stack at E (/home/patrick/.nvm/versions/node/v10.8.0/lib/node_modules/npm/node_modules/which/which.js:80:29) gyp ERR! stack at /home/patrick/.nvm/versions/node/v10.8.0/lib/node_modules/npm/node_modules/which/which.js:89:16 gyp ERR! stack at /home/patrick/.nvm/versions/node/v10.8.0/lib/node_modules/npm/node_modules/isexe/index.js:42:5 gyp ERR! stack at /home/patrick/.nvm/versions/node/v10.8.0/lib/node_modules/npm/node_modules/isexe/mode.js:8:5 gyp ERR! stack at FSReqWrap.oncomplete (fs.js:152:21) gyp ERR! System Linux 4.17.3-surface-linux-surface gyp ERR! command "/home/patrick/.nvm/versions/node/v10.8.0/bin/node" "/home/patrick/.nvm/versions/node/v10.8.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build" gyp ERR! cwd /home/patrick/mockingbird/node_modules/libui-node gyp ERR! node -v v10.8.0 gyp ERR! node-gyp -v v3.7.0 gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! libui-node@0.2.1 build: `node-gyp configure build` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the libui-node@0.2.1 build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm WARN Local package.json exists, but node_modules missing, did you mean to install? npm ERR! A complete log of this run can be found in: npm ERR! /home/patrick/.npm/_logs/2018-09-20T00_10_22_092Z-debug.log npm WARN ajv-keywords@3.2.0 requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! libui-node@0.2.1 install: `libui-download && autogypi && npm run build` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the libui-node@0.2.1 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /home/patrick/.npm/_logs/2018-09-20T00_10_22_390Z-debug.log An error ocurred: npm install has failed. ``` Any idea on how to fix it? Thanks in advance.
Author
Owner

@kusti8 commented on GitHub (Sep 20, 2018):

What's the output of which python?

<!-- gh-comment-id:422999948 --> @kusti8 commented on GitHub (Sep 20, 2018): What's the output of `which python`?
Author
Owner

@wildapt01 commented on GitHub (Sep 20, 2018):

whereis python ==>
python: /usr/bin/python3.6m /usr/bin/python3.6 /usr/lib/python2.7 /usr/lib/python3.6 /usr/lib/python3.7 /etc/python2.7 /etc/python3.6 /usr/local/lib/python3.6 /usr/include/python3.6m /usr/share/python
<!-- gh-comment-id:423000370 --> @wildapt01 commented on GitHub (Sep 20, 2018): ``` whereis python ==> python: /usr/bin/python3.6m /usr/bin/python3.6 /usr/lib/python2.7 /usr/lib/python3.6 /usr/lib/python3.7 /etc/python2.7 /etc/python3.6 /usr/local/lib/python3.6 /usr/include/python3.6m /usr/share/python ```
Author
Owner

@kusti8 commented on GitHub (Sep 20, 2018):

I don't see a python 2.7 binary. You have the library path, but there's nothing in bin. Something is up with your distro.

<!-- gh-comment-id:423001697 --> @kusti8 commented on GitHub (Sep 20, 2018): I don't see a python 2.7 binary. You have the library path, but there's nothing in bin. Something is up with your distro.
Author
Owner

@wildapt01 commented on GitHub (Sep 20, 2018):

Ok, I'll get into that a bit later. Thx a lot for your help!

On Wed, Sep 19, 2018, 8:37 PM Gustav Hansen notifications@github.com
wrote:

I don't see a python 2.7 binary. You have the library path, but there's
nothing in bin. Something is up with your distro.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/kusti8/proton-native/issues/177#issuecomment-423001697,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AONBMj0Yr7aPLdvBLQ7ZiXKAdSv3snyeks5ucuM6gaJpZM4WxLBc
.

<!-- gh-comment-id:423002214 --> @wildapt01 commented on GitHub (Sep 20, 2018): Ok, I'll get into that a bit later. Thx a lot for your help! On Wed, Sep 19, 2018, 8:37 PM Gustav Hansen <notifications@github.com> wrote: > I don't see a python 2.7 binary. You have the library path, but there's > nothing in bin. Something is up with your distro. > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <https://github.com/kusti8/proton-native/issues/177#issuecomment-423001697>, > or mute the thread > <https://github.com/notifications/unsubscribe-auth/AONBMj0Yr7aPLdvBLQ7ZiXKAdSv3snyeks5ucuM6gaJpZM4WxLBc> > . >
Author
Owner

@slaymantis commented on GitHub (Jan 24, 2019):

I am also getting the error:
npm install has failed.

on
OSX 10.14.2
node 11.7
npm 6.7.0
Python 2.7.10

Here is a copy of my terminal output
create-proton-app.txt

<!-- gh-comment-id:457195420 --> @slaymantis commented on GitHub (Jan 24, 2019): I am also getting the error: npm install has failed. on OSX 10.14.2 node 11.7 npm 6.7.0 Python 2.7.10 Here is a copy of my terminal output [create-proton-app.txt](https://github.com/kusti8/proton-native/files/2791847/create-proton-app.txt)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github-starred/proton-native#112
No description provided.