Skip to content

Could I use npm install --registry? #610

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
zhaozhiming opened this issue Sep 9, 2016 · 4 comments
Closed

Could I use npm install --registry? #610

zhaozhiming opened this issue Sep 9, 2016 · 4 comments

Comments

@zhaozhiming
Copy link

Hi,
When I use 'create-react-app myapp' to create project, it auto npm install libs from npmjs.org.

Could I use create-react-app myapp --registry=xxxx to install libs?
Or create-react-app myapp --manual to run npm install manual?

Thanks.

@gaearon
Copy link
Contributor

gaearon commented Sep 9, 2016

Could you please explain the use case for this?

@zhaozhiming
Copy link
Author

Connect to npmjs.org sometimes is slow even broke in China, We use npm.taobao.org more than the former.

And I think it's useful for some people who behind a company firewall and can only npm install from their self-build npm repository.

@gaearon
Copy link
Contributor

gaearon commented Sep 9, 2016

Does setting a global registry override help?
http://stackoverflow.com/a/22390936/458193

@zhaozhiming
Copy link
Author

Yes, you're right. I forgot this. Thanks.

@lock lock bot locked and limited conversation to collaborators Jan 22, 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

No branches or pull requests

2 participants