[GH-ISSUE #81] npm install error? #47

Closed
opened 2026-05-05 11:31:49 -06:00 by gitea-mirror · 10 comments
Owner

Originally created by @liaoyongfu on GitHub (Apr 9, 2018).
Original GitHub issue: https://github.com/kusti8/proton-native/issues/81

npx create-proton-app quickBuild

and then I get the error:

Creating a new Proton Native app on E:\workspace2017\myproject\quickBuild

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


An error ocurred:
 npm.cmd install --save --loglevel error proton-native babel-cli babel-preset-env babel-preset-stage-0 babel-preset-react has failed.

How can i deal with it?

Originally created by @liaoyongfu on GitHub (Apr 9, 2018). Original GitHub issue: https://github.com/kusti8/proton-native/issues/81 ``` npx create-proton-app quickBuild ``` and then I get the error: ``` Creating a new Proton Native app on E:\workspace2017\myproject\quickBuild Installing packages... This may take a few minutes. An error ocurred: npm.cmd install --save --loglevel error proton-native babel-cli babel-preset-env babel-preset-stage-0 babel-preset-react has failed. ``` How can i deal with it?
Author
Owner

@mischnic commented on GitHub (Apr 9, 2018):

@albe-rosado

<!-- gh-comment-id:379867066 --> @mischnic commented on GitHub (Apr 9, 2018): @albe-rosado
Author
Owner

@albe-rosado commented on GitHub (Apr 9, 2018):

mmmm, let me see @liaoyongfu , will get back to you very soon

<!-- gh-comment-id:379887180 --> @albe-rosado commented on GitHub (Apr 9, 2018): mmmm, let me see @liaoyongfu , will get back to you very soon
Author
Owner

@albe-rosado commented on GitHub (Apr 9, 2018):

@liaoyongfu tested it in linux and macos and works. @mischnic are you having the same problem?
looks like the problem is on windows, let me see if i can get a vm running windows to see.
@liaoyongfu also make sure you have all the required dependencies installed.

<!-- gh-comment-id:379907965 --> @albe-rosado commented on GitHub (Apr 9, 2018): @liaoyongfu tested it in linux and macos and works. @mischnic are you having the same problem? looks like the problem is on windows, let me see if i can get a vm running windows to see. @liaoyongfu also make sure you have all the required dependencies installed.
Author
Owner

@mischnic commented on GitHub (Apr 9, 2018):

Works on Mac with create-proton-app installed globally

<!-- gh-comment-id:379910481 --> @mischnic commented on GitHub (Apr 9, 2018): Works on Mac with create-proton-app installed globally
Author
Owner

@kusti8 commented on GitHub (Apr 9, 2018):

Try executing the command normally. It may be something to do with how your permissions are set or something like that.

<!-- gh-comment-id:379916664 --> @kusti8 commented on GitHub (Apr 9, 2018): Try executing the command normally. It may be something to do with how your permissions are set or something like that.
Author
Owner

@liaoyongfu commented on GitHub (Apr 10, 2018):

Thank you all. I'm sure create-proton-app has installed globally:

F:\>npm list -g create-proton-app
D:\nodejs
`-- create-proton-app@1.1.1

I also try create-proton-app my-app, but also get the error. I don't know what's going on?

<!-- gh-comment-id:379944411 --> @liaoyongfu commented on GitHub (Apr 10, 2018): Thank you all. I'm sure create-proton-app has installed globally: ``` F:\>npm list -g create-proton-app D:\nodejs `-- create-proton-app@1.1.1 ``` I also try `create-proton-app my-app`, but also get the error. I don't know what's going on?
Author
Owner

@albe-rosado commented on GitHub (Apr 10, 2018):

I will find a windows pc to reproduce this and will get back to you asap @liaoyongfu
i tried this on windows before and worked fine, i need to add better error output to the cli tho.
also do npm install --global --production windows-build-tools and let me know if fixes it @liaoyongfu

<!-- gh-comment-id:379946274 --> @albe-rosado commented on GitHub (Apr 10, 2018): I will find a windows pc to reproduce this and will get back to you asap @liaoyongfu i tried this on windows before and worked fine, i need to add better error output to the cli tho. also do `npm install --global --production windows-build-tools` and let me know if fixes it @liaoyongfu
Author
Owner

@liaoyongfu commented on GitHub (Apr 10, 2018):

@albe-rosado Thanks a lot. After running npm install --global --production windows-build-tools it was successful:

C:\Users\Administrator>npm install --global --production windows-build-tools

> windows-build-tools@2.2.1 postinstall D:\nodejs\node_modules\windows-build-too
ls
> node ./lib/index.js

Downloading BuildTools_Full.exe
[============================================>] 100.0% of 3.29 MB (3.29 MB/s)
Downloading python-2.7.14.amd64.msi
[============================================>] 100.0% of 20.17 MB (1.34 MB/s)
Downloaded python-2.7.14.amd64.msi. Saved to C:\Users\Administrator\.windows-bui
ld-tools\python-2.7.14.amd64.msi.

Starting installation...
Launched installers, now waiting for them to finish.
This will likely take some time - please be patient!

Status from the installers:
---------- Visual Studio Build Tools ----------
Successfully installed Visual Studio Build Tools.
------------------- Python --------------------
Successfully installed Python 2.7
+ windows-build-tools@2.2.1
added 132 packages in 1028.132s
<!-- gh-comment-id:379995232 --> @liaoyongfu commented on GitHub (Apr 10, 2018): @albe-rosado Thanks a lot. After running `npm install --global --production windows-build-tools` it was successful: ``` C:\Users\Administrator>npm install --global --production windows-build-tools > windows-build-tools@2.2.1 postinstall D:\nodejs\node_modules\windows-build-too ls > node ./lib/index.js Downloading BuildTools_Full.exe [============================================>] 100.0% of 3.29 MB (3.29 MB/s) Downloading python-2.7.14.amd64.msi [============================================>] 100.0% of 20.17 MB (1.34 MB/s) Downloaded python-2.7.14.amd64.msi. Saved to C:\Users\Administrator\.windows-bui ld-tools\python-2.7.14.amd64.msi. Starting installation... Launched installers, now waiting for them to finish. This will likely take some time - please be patient! Status from the installers: ---------- Visual Studio Build Tools ---------- Successfully installed Visual Studio Build Tools. ------------------- Python -------------------- Successfully installed Python 2.7 + windows-build-tools@2.2.1 added 132 packages in 1028.132s ```
Author
Owner

@albe-rosado commented on GitHub (Apr 10, 2018):

@liaoyongfu your welcome, I will make a PR to update the docs to reflect the need for the dependencies for windows and linux.

<!-- gh-comment-id:380167364 --> @albe-rosado commented on GitHub (Apr 10, 2018): @liaoyongfu your welcome, I will make a PR to update the docs to reflect the need for the dependencies for windows and linux.
Author
Owner

@kusti8 commented on GitHub (Apr 10, 2018):

It's only needed for Windows if you don't have a suitable compiler/python.

On Tue, Apr 10, 2018, 12:38 PM Alberto Rosado notifications@github.com
wrote:

@liaoyongfu https://github.com/liaoyongfu your welcome, I will make a
PR to update the docs to reflect the need for the dependencies for windows
and linux.

—
You are receiving this because you commented.

Reply to this email directly, view it on GitHub
https://github.com/kusti8/proton-native/issues/81#issuecomment-380167364,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AJW73FUiyBcq004bWhgRBHw0wjm8Vl-Nks5tnOAMgaJpZM4TMYc9
.

<!-- gh-comment-id:380176715 --> @kusti8 commented on GitHub (Apr 10, 2018): It's only needed for Windows if you don't have a suitable compiler/python. On Tue, Apr 10, 2018, 12:38 PM Alberto Rosado <notifications@github.com> wrote: > @liaoyongfu <https://github.com/liaoyongfu> your welcome, I will make a > PR to update the docs to reflect the need for the dependencies for windows > and linux. > > — > You are receiving this because you commented. > > > Reply to this email directly, view it on GitHub > <https://github.com/kusti8/proton-native/issues/81#issuecomment-380167364>, > or mute the thread > <https://github.com/notifications/unsubscribe-auth/AJW73FUiyBcq004bWhgRBHw0wjm8Vl-Nks5tnOAMgaJpZM4TMYc9> > . >
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#47
No description provided.