Skip to content

Dependency reference used incorrect github syntax #2554

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

Closed
wants to merge 1 commit into from
Closed

Dependency reference used incorrect github syntax #2554

wants to merge 1 commit into from

Conversation

clov3r
Copy link

@clov3r clov3r commented Oct 6, 2016

npm install -g angular-cli fails on OSX 10.11.6 with node v4.2.6 (npm v2.1.11), giving the following error:

npm ERR! Darwin 15.6.0
npm ERR! argv "/Users/clov3r/.nvm/versions/node/v4.2.6/bin/node" "/Users/clov3r/.nvm/versions/node/v4.2.6/bin/npm" "install" "-g" "angular-cli"
npm ERR! node v4.2.6
npm ERR! npm  v2.1.11

npm ERR! Unsupported URL Type: github:webpack/compression-webpack-plugin#7e55907cd54a2e91b96d25a660acc6a2a6453f54

As of version 1.1.65, you can refer to GitHub urls as just "foo": "user/foo-project". Just as with git URLs, a commit-ish suffix can be included.

Source

`npm install -g angular-cli` fails on OSX 10.11.6 with node v4.2.6 (npm v2.1.11), giving the following error:

```
npm ERR! Darwin 15.6.0
npm ERR! argv "/Users/clov3r/.nvm/versions/node/v4.2.6/bin/node" "/Users/clov3r/.nvm/versions/node/v4.2.6/bin/npm" "install" "-g" "angular-cli"
npm ERR! node v4.2.6
npm ERR! npm  v2.1.11

npm ERR! Unsupported URL Type: github:webpack/compression-webpack-plugin#7e55907cd54a2e91b96d25a660acc6a2a6453f54
```

> As of version 1.1.65, you can refer to GitHub urls as just "foo": "user/foo-project". Just as with git URLs, a commit-ish suffix can be included.

[Source](https://docs.npmjs.com/files/package.json#github-urls)
@clydin
Copy link
Member

clydin commented Oct 7, 2016

FYI. The quote is referring to the previous need to use a full git url to access github. In addition, NPM 3 added the option to use URL protocol specifiers for various git sources (github, bitbucket, and others).

Also, as per the CLI README (which was recently updated to clarify the requirements), NPM 3+ is required by the CLI.

@filipesilva
Copy link
Contributor

Closed as npm3 is a hard requirement of this project.

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants