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

only extract version numbers from lines which contain <a></a> tags #281

Merged
merged 1 commit into from Jul 13, 2015
Merged

only extract version numbers from lines which contain <a></a> tags #281

merged 1 commit into from Jul 13, 2015

Conversation

longtian
Copy link
Contributor

This mirror website is popular in Asia

http://npm.taobao.org/mirrors/node/

I have problems installing nodejs using customized mirror website

NODE_MIRROR=http://npm.taobao.org/mirrors/node/ n ls

because 3.2.0 pops up in the list as shown below

    ...
    0.11.12
    0.11.13
    0.11.14
    0.11.15
    0.11.16
    0.12.0
    0.12.1
    0.12.2
    0.12.3
    0.12.4
    3.2.0

I try to find the root cause by myself, it turns out the mirror website source code contains links to bootstrap

    <link href="//dn-staticfile.qbox.me/twitter-bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" media="screen">

so, the problem can be fixed by prepending another egrep

| egrep "</a>" \

…nt 3.2.0 from

```html
    <link href="//dn-staticfile.qbox.me/twitter-bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" media="screen">
```
MIRROR=(${NODE_MIRROR-https://nodejs.org/dist/}
${IO_MIRROR-https://iojs.org/dist/})
MIRROR=(${NODE_MIRROR-http://npm.taobao.org/mirrors/node/}
${IO_MIRROR-http://npm.taobao.org/mirrors/iojs/})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you added this to this PR by accident, you can avoid these situations by always creating a new branch in your fork for each feature you want to create a PR for.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much for pointing this out

@maxrimue
Copy link
Contributor

@tedgaydos What's your thought on this?

@qw3rtman
Copy link
Collaborator

I have confirmed that this doesn't affect the output when using the default mirror in any way. Both outputs of n ls are the same. 👍

@maxrimue
Copy link
Contributor

I'll merge this once we decided about how to organise the next versions of n (#276)

@ghost
Copy link

ghost commented Jun 16, 2015

👍 Looks good. We can mix it in with 1.4. I was away for a bit. We will get 1.4 out soon. I just noticed that there was a copy error still in 1.3 published to npmjs.org.

@maxrimue maxrimue merged commit 9c72e51 into tj:master Jul 13, 2015
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

Successfully merging this pull request may close these issues.

None yet

3 participants