Skip to content
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

Please provide a hacked version of npm. #458

Closed
leiwan5 opened this issue Feb 20, 2013 · 4 comments
Closed

Please provide a hacked version of npm. #458

leiwan5 opened this issue Feb 20, 2013 · 4 comments

Comments

@leiwan5
Copy link

leiwan5 commented Feb 20, 2013

for installing modules need compiling.

nw-npm install sqlite
@Mithgol
Copy link
Contributor

Mithgol commented Mar 13, 2013

Before hacking npm it is wise to discuss if its possible for the original npm to build node-webkit modules where necessary.

I've opened isaacs/npm#3244 for this purpose.

@Mithgol
Copy link
Contributor

Mithgol commented Mar 14, 2013

My isaacs/npm#3244 issue is closed, wontfix.

Now an idea of creating a fork of npm remains as the only option.

Calling nw-gyp instead of node-gyp would require forking read-package-json as well, for changing, essentially, only a single line of code (its line 159 currently).

Additionally, --target=… option has to be passed from npm's command line to nw-gyp through read-package-json.

/cc @rogerwang as the nw-gyp's maintainer

@springmeyer
Copy link

npm install <module> --target=<nw-version> is now possible through node-pre-gyp: mapbox/node-pre-gyp#14

@rogerwang
Copy link
Member

This is now supported by node-pre-gyp.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants