raphinesse commented on issue #838: Docs should not encourage global npm installation URL: https://github.com/apache/cordova-docs/issues/838#issuecomment-400505667 > There probably was a reason why `sudo` is mentioned currently? @janpio I suppose because for most default setups you need root access to install npm packages globally. This is widely considered a bad idea though. Instead you should setup npm to install global packages to your home folder, for example. Other than that, `sudo` is still mainly an Ubuntu thing, or am I mistaken? Anyway, I was suggesting the following: Inform the user *once* about his options on how to install `cordova`: - global installation (maybe with a remark/link or two about running npm as root) - project-local installation (remark about it being preferred & reasons for that; remark that whenever the docs say run `cordova` you have to run `npx cordova` to use the local version) Afterwards don't worry to mention `npx` anywhere and everywhere but only refer to `cordova`. I hope I have made myself clearer now.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
