rocjs / roc

🐦 Modern JavaScript Development Ecosystem
MIT License
425 stars 23 forks source link

running npm install in new app folder installs local version of roc #130

Closed devdavidkarlsson closed 8 years ago

devdavidkarlsson commented 8 years ago

Why have a local roc version when you already have been asked to install one globally? I would prefer to have one local only and not updating my system using "sudo" when installing roc.

andreasrs commented 8 years ago

Hey! The global one is for convenience when newing or initing new projects.

The local one will always be preferred when available, even when triggered through the global instance. Roc makes sure of this. It prints a notice when detecting a local instance which is used instead, in a project.

Not directly related to this issue, but it is often preferred to set up npm so that no sudo is required for "global" (-g) installs. This is done by making it "global" to your particular user, and not entire multiuser system which resides in locations that require root.

dlmr commented 8 years ago

I will go ahead and close this issue.

If you have additional questions or problems please open another issue! :)