[GH-ISSUE #88] NPM install fails on Windows 10, Node 10 #54

Closed
opened 2026-05-05 11:32:50 -06:00 by gitea-mirror · 24 comments
Owner

Originally created by @matiit on GitHub (May 2, 2018).
Original GitHub issue: https://github.com/kusti8/proton-native/issues/88

λ create-proton-app test-proton-app
Creating a new Proton Native app on C:\Users\matiq\home\sandbox\test-proton-app

Installing packages... This may take a few minutes.


An error ocurred:
 npm.cmd install --save --loglevel error proton-native has failed.

(node:17644) UnhandledPromiseRejectionWarning: Error: [object Object]
    at isOnline.then.then.then.catch (C:\Users\matiq\AppData\Roaming\npm\node_modules\create-proton-app\src\createApp.js:95:11)
    at process._tickCallback (internal/process/next_tick.js:178:7)
(node:17644) 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:17644) [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.
λ node -v
v10.0.0
λ npm -v
5.6.0

image

Originally created by @matiit on GitHub (May 2, 2018). Original GitHub issue: https://github.com/kusti8/proton-native/issues/88 ``` λ create-proton-app test-proton-app Creating a new Proton Native app on C:\Users\matiq\home\sandbox\test-proton-app Installing packages... This may take a few minutes. An error ocurred: npm.cmd install --save --loglevel error proton-native has failed. (node:17644) UnhandledPromiseRejectionWarning: Error: [object Object] at isOnline.then.then.then.catch (C:\Users\matiq\AppData\Roaming\npm\node_modules\create-proton-app\src\createApp.js:95:11) at process._tickCallback (internal/process/next_tick.js:178:7) (node:17644) 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:17644) [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. ``` ``` λ node -v v10.0.0 ``` ``` λ npm -v 5.6.0 ``` ![image](https://user-images.githubusercontent.com/138194/39540289-1f923880-4e3a-11e8-87a1-044af22fbf79.png)
gitea-mirror 2026-05-05 11:32:50 -06:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@mischnic commented on GitHub (May 2, 2018):

@albe-rosado

Your error logging code: console.log(ansiColors.red, '${errorMessage}');.
I think with console.log(ansiColors.red, errorMessage);, it wouldnt just say [object Object].

Works fine with Node 10 and macOS Sierra.

<!-- gh-comment-id:386067413 --> @mischnic commented on GitHub (May 2, 2018): @albe-rosado Your error logging code: [`console.log(ansiColors.red, '${errorMessage}');`](https://github.com/albe-rosado/create-proton-app/blob/c88a0a4d1129535f7729811c2ff7751dee243ba9/src/createApp.js#L174). I think with `console.log(ansiColors.red, errorMessage);`, it wouldnt just say `[object Object]`. Works fine with Node 10 and macOS Sierra.
Author
Owner

@jakubtuchol commented on GitHub (May 2, 2018):

I got the same error on macOS High Sierra, Node 10. I installed create-proton-app locally, and then attempted running ./node_modules/.bin/create-proton-app new-app. I got an identical error.

<!-- gh-comment-id:386071749 --> @jakubtuchol commented on GitHub (May 2, 2018): I got the same error on macOS High Sierra, Node 10. I installed `create-proton-app` locally, and then attempted running `./node_modules/.bin/create-proton-app new-app`. I got an identical error.
Author
Owner

@mischnic commented on GitHub (May 2, 2018):

Could you (both) please try installing proton-native itself directly?

Is the npm package windows-build-tools (for Windows) or Xcode (macOS) installed?

<!-- gh-comment-id:386073664 --> @mischnic commented on GitHub (May 2, 2018): Could you (both) please try installing `proton-native` itself directly? Is the npm package `windows-build-tools` (for Windows) or Xcode (macOS) installed?
Author
Owner

@matiit commented on GitHub (May 2, 2018):

Reinstalling proton-native didn't help.

The windows-build-tools package was not installed on my system, installing it now and will try reinstalling proton-native then.

<!-- gh-comment-id:386076365 --> @matiit commented on GitHub (May 2, 2018): Reinstalling `proton-native` didn't help. The `windows-build-tools` package was not installed on my system, installing it now and will try reinstalling `proton-native` then.
Author
Owner

@matiit commented on GitHub (May 2, 2018):

Installing windows-build-tools have worked indeed.

Thank you @mischnic

<!-- gh-comment-id:386079711 --> @matiit commented on GitHub (May 2, 2018): Installing `windows-build-tools` have worked indeed. Thank you @mischnic
Author
Owner

@albe-rosado commented on GitHub (May 2, 2018):

@jakubtuchol did installing windows-build-tools worked for you?

<!-- gh-comment-id:386082122 --> @albe-rosado commented on GitHub (May 2, 2018): @jakubtuchol did installing windows-build-tools worked for you?
Author
Owner

@albe-rosado commented on GitHub (May 2, 2018):

I updated the readme on create-proton-app stating the required dep for windows.

<!-- gh-comment-id:386082269 --> @albe-rosado commented on GitHub (May 2, 2018): I updated the readme on create-proton-app stating the required dep for windows.
Author
Owner

@mischnic commented on GitHub (May 2, 2018):

jakubtuchol did installing windows-build-tools worked for you?

Well, on macOS it won't work. 😄

<!-- gh-comment-id:386082971 --> @mischnic commented on GitHub (May 2, 2018): > jakubtuchol did installing windows-build-tools worked for you? Well, on macOS it won't work. 😄
Author
Owner

@albe-rosado commented on GitHub (May 2, 2018):

i meant oh, that was the macOS person lol.... that is weird, i do have a mac , let me try

<!-- gh-comment-id:386086639 --> @albe-rosado commented on GitHub (May 2, 2018): i meant oh, that was the macOS person lol.... that is weird, i do have a mac , let me try
Author
Owner

@albe-rosado commented on GitHub (May 2, 2018):

It works! tried with npx and installing globally.

<!-- gh-comment-id:386088375 --> @albe-rosado commented on GitHub (May 2, 2018): It works! tried with npx and installing globally.
Author
Owner

@mischnic commented on GitHub (May 2, 2018):

What version do you have? I use Sierra and had no problem.

Did you see https://github.com/kusti8/proton-native/issues/88#issuecomment-386067413 ?

<!-- gh-comment-id:386088805 --> @mischnic commented on GitHub (May 2, 2018): What version do you have? I use Sierra and had no problem. Did you see https://github.com/kusti8/proton-native/issues/88#issuecomment-386067413 ?
Author
Owner

@jesseruth commented on GitHub (May 2, 2018):

I just tried installing this on mac and got the same error:
at <anonymous> (node:22653) 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:22653) [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.

<!-- gh-comment-id:386110218 --> @jesseruth commented on GitHub (May 2, 2018): I just tried installing this on mac and got the same error: ` at <anonymous> (node:22653) 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:22653) [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.`
Author
Owner

@albe-rosado commented on GitHub (May 2, 2018):

mmm, will take a look at that, I can't reproduce the issue tho. @madongo are you on windows? if yes, loot above , if not, can you share your version of node and npm, as well as your OS ?

<!-- gh-comment-id:386111309 --> @albe-rosado commented on GitHub (May 2, 2018): mmm, will take a look at that, I can't reproduce the issue tho. @madongo are you on windows? if yes, loot above , if not, can you share your version of node and npm, as well as your OS ?
Author
Owner

@albe-rosado commented on GitHub (May 2, 2018):

Also, we should move this to create-proton-app repo, this is not proton-native related, can anyone reopen the issue over there, with details? @mischnic can you reproduce it?

<!-- gh-comment-id:386111984 --> @albe-rosado commented on GitHub (May 2, 2018): Also, we should move this to `create-proton-app` repo, this is not proton-native related, can anyone reopen the issue over there, with details? @mischnic can you reproduce it?
Author
Owner

@mischnic commented on GitHub (May 2, 2018):

@albe-rosado

No problem with macOS Sierra. And in the first comment I made here, I pointed out that your code might hide the real error which got thrown somewhere unexpectedly. Did you see that?

<!-- gh-comment-id:386112460 --> @mischnic commented on GitHub (May 2, 2018): @albe-rosado No problem with macOS Sierra. And in the first comment I made here, I pointed out that your code might hide the real error which got thrown somewhere unexpectedly. Did you see that?
Author
Owner

@albe-rosado commented on GitHub (May 2, 2018):

you are right!, let me update that

<!-- gh-comment-id:386114387 --> @albe-rosado commented on GitHub (May 2, 2018): you are right!, let me update that
Author
Owner

@jesseruth commented on GitHub (May 2, 2018):

Hey I am on Mac
Node - v9.5.0
High Sierra - 10.13.3 (17D47)
I tried it with node v10 and I am not having any luck either

<!-- gh-comment-id:386122877 --> @jesseruth commented on GitHub (May 2, 2018): Hey I am on Mac Node - v9.5.0 High Sierra - 10.13.3 (17D47) I tried it with node v10 and I am not having any luck either
Author
Owner

@albe-rosado commented on GitHub (May 2, 2018):

@mischnic actually, I just looked at the code,erroMessage is a string, so you won't get [object Object]. Although I would like to print the stdout/stderr to give a better idea to the developer what went wrong, will do that.

<!-- gh-comment-id:386132100 --> @albe-rosado commented on GitHub (May 2, 2018): @mischnic actually, I just looked at the code,`erroMessage` is a string, so you won't get [object Object]. Although I would like to print the stdout/stderr to give a better idea to the developer what went wrong, will do that.
Author
Owner

@albe-rosado commented on GitHub (May 2, 2018):

@madongo @jakubtuchol a new version is up, please update to create-proton-app@1.1.5

<!-- gh-comment-id:386135356 --> @albe-rosado commented on GitHub (May 2, 2018): @madongo @jakubtuchol a new version is up, please update to create-proton-app@1.1.5
Author
Owner

@albe-rosado commented on GitHub (May 2, 2018):

you will get better logging, so we will be able to know what happended on your enviroment. :)

<!-- gh-comment-id:386135549 --> @albe-rosado commented on GitHub (May 2, 2018): you will get better logging, so we will be able to know what happended on your enviroment. :)
Author
Owner

@jakubtuchol commented on GitHub (May 3, 2018):

@albe-rosado I didn't have to install windows-build-tools, but I was able to verify that create-proton-app was able to work successfully. Thanks so much!

<!-- gh-comment-id:386169285 --> @jakubtuchol commented on GitHub (May 3, 2018): @albe-rosado I didn't have to install `windows-build-tools`, but I was able to verify that `create-proton-app` was able to work successfully. Thanks so much!
Author
Owner

@iamwelk commented on GitHub (May 3, 2018):

I have the same error..

<!-- gh-comment-id:386269966 --> @iamwelk commented on GitHub (May 3, 2018): I have the same error..
Author
Owner

@albe-rosado commented on GitHub (May 3, 2018):

@iamwelk do you have create-proton-app@1.1.5? can you share the logs?

<!-- gh-comment-id:386297352 --> @albe-rosado commented on GitHub (May 3, 2018): @iamwelk do you have create-proton-app@1.1.5? can you share the logs?
Author
Owner

@kusti8 commented on GitHub (May 19, 2018):

Closed due to inactivity. If the problem persists, create a new issue.

<!-- gh-comment-id:390419836 --> @kusti8 commented on GitHub (May 19, 2018): Closed due to inactivity. If the problem persists, create a new issue.
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#54
No description provided.