-
-
Notifications
You must be signed in to change notification settings - Fork 519
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Production pruning fails when yarn
is used to install and npm@5
is used to prune
#249
Comments
In between Although I think "Installing NPM Dependencies" should do that for you... |
Do you mind running |
@malept The Here the output of the debug stuff:
|
And also the make step as debug:
|
is |
Yes. It is present in |
@malept Is it normal, that he can't find some of the hooks like |
Also been having this issue. Can't tell why though the |
What npm version are you guys running? |
@Meadowcottage @choffmeister Can you drop back to |
Ah okay. Didn't know that. |
I will try the npm3 thing. Although it should not make a difference, because the packages are there and working for |
Behind the scenes Electron Packager runs
|
The other thing you guys can try is setting
https://github.com/electron-userland/electron-packager/blob/master/docs/api.md#packagemanager |
@MarshallOfSound You had the right idea. I tested making inside of the docker image |
@choffmeister I think this is something that needs to be minimally reproed and raised on the |
@MarshallOfSound Yes. I hope that the NPM guys get v5 fixed soon. Thanks for your help! |
@MarshallOfSound I found the real issue. The problem with So from that point I would say it is an issue of electron-forge. Either:
|
@malept I think the best thing to do here if @choffmeister's analysis is correct is to modify your PR #216 so that it sets the We should also add some validation so if |
yarn
is used to install and npm@5
is used to prune
Do you usually mark both issues as "duplicate"? Either way, a change has been merged and issue closed, but a download of electron-forge today (literally, I tried it today - Nov 4 2017) still exhibits the issue. I had npm@5 installed and downgraded to npm@3 and that fixed it. Is a new release with the fix planned or is there something I am missing? thanks |
I'm not seeing a mention of this as a duplicate. What version of NPM 5 were you using? |
Oh, weird GitHub duplicate marking. I didn't see it because I'm on mobile. Was your NPM the default that came with Node? If so, what version of Node do you have installed? |
I can now reproduce this with node 3 or node 5, so I think is some other dependency. As I was having Travis-CI problems anyway, I'm now running this in a clean docker image of travis-ci. You should be able to reproduce this using docker and get exactly the same machine and installed dependencies as me.
|
It seems like |
Ouch! You can tell I'm an npm newbie... That got things further at least, the .deb build worked and then the .rpm build failed, so some other issues I need to investigate. Thanks for the patience and sorry for wasting your time. |
As @MarshallOfSound suggested, adding |
Vanilla app build here on MacOS. Adding
|
@alairock What's the actual console output? |
|
That doesn't make any sense to me. What does your Forge config look like? |
|
Have you tried wiping out the |
@malept I'm running into the same problem and setting |
@xn this is not surprising, I have electron/packager#819 to drop support for using NPM/yarn/cnpm to prune. |
Thanks for the help. I appreciate it. |
Is this really solved? I follow the instruction and still get the same error message
it prompts me
Then I go to unzip and run the app, got the following error
|
A few things:
@MarshallOfSound can we "deprecate" |
Hi, I've been running into the same issue, and I don't know where to change Could you help me out please? Sorry about the probably newbie question :) |
@Acccent please run In my earlier comment there are different instructions for Electron Forge 5 (and below) and Electron Forge 6 (and above). |
@malept I have 5.2.2 (installed locally), so I tried following the instructions for 5 and below (setting |
Just a quick update. After I switched to ver 5, even without configuring packageManager, it’s working out of the box. |
Ok so
|
Same as @Acccent, my problem when running the packaged application on windows was solved after installing electron-compile manually in the project. |
I can't believe that others have this problem, too. But I really don't know what else could I test. Here is my minimal example to reproduce the problem (I am using OSX):
So I created a fresh project from scratch, package it and try to open the resulting app. But I get the following error:
Investigating the folder of the app I find, that the folder
out/test-darwin-x64/test.app/Contents/Resources/app/node_modules
is empty.Is this an OSX problem?
Thanks for your help!
The text was updated successfully, but these errors were encountered: