Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xadillax/gyp-io-service
Temporary solution to let node-gyp run `rebuild` under io.js.
https://github.com/xadillax/gyp-io-service
Last synced: 28 days ago
JSON representation
Temporary solution to let node-gyp run `rebuild` under io.js.
- Host: GitHub
- URL: https://github.com/xadillax/gyp-io-service
- Owner: XadillaX
- License: gpl-2.0
- Created: 2015-03-09T08:10:07.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-04-07T16:06:24.000Z (over 2 years ago)
- Last Synced: 2024-10-05T01:52:58.719Z (about 1 month ago)
- Language: JavaScript
- Size: 13.7 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GYP io.js Temporary Support
Temporary solution to let node-gyp run `rebuild` under io.js.
## Usage
First make sure you're using io.js.
> Example:
>
> ```sh
> $ node -v
> v1.5.0
> ```### Installation
```sh
$ [sudo] npm install -g gyp-io
```### Start
Make sure you have the permission to listen to port 80.
And close your existing activity port 80 application.
Run the command:
```sh
$ [sudo] gyp-io
```The service will start and you can use `node-gyp configure` now!
## Principle
I just temporarily modify your `/etc/hosts` that redirecting `nodejs.org` to `127.0.0.1`.
Next step is to start up a small server just redirecting `node-foo.tar.gz` to `iojs.org` and modify some parameters.
After you press `Ctrl + C`, the service will resume your `/etc/hosts` and stop the server.
## Contribute
You're welcome to make pull requests!
「雖然我覺得不怎麼可能有人會關注我」