ERR! configure error Windows 10
See original GitHub issuerun command in cmd.exe:
create-proton-app my-proton-app
output errors in console:
reactapp\my-proton-app\node_modules\libui-node>if not defined npm_config_node_gyp (node “C:\Users\userName\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\…..\node_modules\node-gyp\bin\node-gyp.js” configure build ) else (node “C:\Users\userName\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node_modules\node-gyp\bin\node-gyp.js” configure build )
gyp ERR! configure error gyp ERR! stack Error: Can’t find Python executable “C:\Users\userName\AppData\Local\Programs\Python\Python36-32\python.EXE”, you can set the PYTHON env variable. gyp ERR! stack at PythonFinder.failNoPython (C:\Users\userName\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node_modules\node-gyp\lib\configure.js:483:19) gyp ERR! stack at PythonFinder.<anonymous> (C:\Users\userName\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node_modules\node-gyp\lib\configure.js:508:16) gyp ERR! stack at C:\Users\userName\AppData\Roaming\npm\node_modules\npm\node_modules\graceful-fs\polyfills.js:284:29 gyp ERR! stack at FSReqWrap.oncomplete (fs.js:152:21) gyp ERR! System Windows_NT 10.0.17134 gyp ERR! command “C:\Program Files\nodejs\node.exe” “C:\Users\userName\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node_modules\node-gyp\bin\node-gyp.js” “configure” “build” gyp ERR! cwd C:\Users\userName\Desktop\reactapp\my-proton-app\node_modules\libui-node gyp ERR! node -v v8.10.0 gyp ERR! node-gyp -v v3.6.2 gyp ERR! not ok
npm
ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! libui-node@0.1.0 build: node-gyp configure build
npm ERR! Exit status 1
npm ERR! npm ERR! Failed at the libui-node@0.1.0 build 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! C:\Users\userName\AppData\Roaming\npm-cache_logs\2018-05-03T03_11_22_548Z-debug.log
Note: Actually I tried to open this debug.log file but it was empty.
npm ERR! code ELIFECYCLE npm ERR! errno 1
npm ERR! libui-node@0.1.0 install: libui-download && autogypi && npm run build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the libui-node@0.1.0 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! C:\Users\userName\AppData\Roaming\npm-cache_logs\2018-05-03T03_11_23_405Z-debug.log
An error ocurred: npm.cmd install --save --loglevel error proton-native has failed.
(node:7824) UnhandledPromiseRejectionWarning: Error: [object Object] at isOnline.then.then.then.catch (C:\Users\userName\AppData\Roaming\npm\node_modules\create-proton-app\src\createApp.js:95:11) at <anonymous> (node:7824) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:7824) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Environment: Windows 10 64bit, node v10.0.0
Issue Analytics
- State:
- Created 5 years ago
- Comments:23 (10 by maintainers)
Top GitHub Comments
I have confirmed this with more certainty that this issue may be related to a normal user without admin permission. If I use an admin account to run the command create-proton-app my-app, I will not meet the error. It seems that some commands need admin permission but it will not popup dialog to ask for admin password when create-proton-app command executes.
@mischnic he already tried: https://github.com/kusti8/proton-native/issues/95#issuecomment-386220338