-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
Allow cnpm to be used instead of npm on Windows #515
Comments
Does |
Yes, cnpm do has the same |
Electron Packager needs to be changed to be able to specify a custom command as the package manager, in order to run the "prune It should be called I am happy to review pull requests that implement this (and, obviously, follow the contributing guidelines). |
I am having a really difficult time getting cnpm to be called correctly on Windows, for some reason. This is the error I keep getting from both
Since Windows is not my area of expertise, I'm inclined to only implement cnpm support for Linux/macOS and wait for someone to file a PR to get this working correctly on Windows. It will raise an error if cnpm is selected on Windows in the meantime. |
cnpm is a replacement tool of npm which optimized the install speed. BTW, it uses a Chinese mirror by default.
The structure of node_modules is quite different when modules are installed with cnpm. (It uses some soft links.)
The installation of cnpm is:
When package apps, electron-packager hangs. The log stopped by this:
And the template folder of app is keeping increase, never stops.
I guess the problem occurs on the
npm prune
step.related issue: cnpm/npminstall#155
The text was updated successfully, but these errors were encountered: