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

How do you install from a repo, rather than the npm registry? #621

Closed
adambowles opened this issue Oct 11, 2016 · 4 comments
Closed

How do you install from a repo, rather than the npm registry? #621

adambowles opened this issue Oct 11, 2016 · 4 comments

Comments

@adambowles
Copy link

No description provided.

@sebmck
Copy link
Contributor

sebmck commented Oct 11, 2016

Hey @adambowles! Thanks for the question. Can you clarify what you mean? Are you referring to a git repo? If so, you can do this the same as you would with npm. Happy to help and provide commands if you can be more specific. Thanks!

@farism
Copy link

farism commented Oct 11, 2016

@kittens It looks like yarn does not support npm supported shorthand syntax e.g. facebook/react.git, only fully qualified.

@adambowles
Copy link
Author

Hey,

I have this in my package.json:
"package-name": "git+ssh://[email protected]:libraries/app-switcher.git"
(Privately hosted git server)

yarn gives the following error:

info No lockfile found.
[1/4] Resolving packages...
error Couldn't find package "package-name" on the "npm" registry.
info Visit http://yarnpkg.com/en/docs/cli/install for documentation about this command.

@montogeek
Copy link

@adambowles Addressed here #513

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