[ https://issues.apache.org/jira/browse/CB-6680?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14004878#comment-14004878 ]
ASF GitHub Bot commented on CB-6680: ------------------------------------ Github user jsoref commented on a diff in the pull request: https://github.com/apache/cordova-docs/pull/205#discussion_r12906677 --- Diff: docs/en/edge/guide/cli/index.md --- @@ -73,22 +74,41 @@ To install the `cordova` command-line tool, follow these steps: the CLI does use it behind-the-scenes to download some assets when creating a new project. -1. Install the `cordova` utility. In Unix, prefixing the additional - `sudo` command may be necessary to install development utilities in - otherwise restricted directories: +1. Install the `cordova` module using Node.js' `npm` utility. The cordova + module will automatically be downloaded by the `npm` utility. - $ sudo npm install -g cordova + * on OS X and Linux: - The installation log may produce errors for any uninstalled - platform SDKs. Following installation, you should be able to run - `cordova` on the command line. + $ sudo npm install -g cordova + + On OS X and Linux, prefixing the `npm` command with + `sudo` may be necessary to install this development utility in + otherwise restricted directories such as + `/usr/local/share`. If you are using the optional + nvm/nave tool or have write access to the install directory, + you may be able to omit the `sudo` prefix. There are + [more tips](http://justjs.com/posts/npm-link-developing-your-own-npm-modules-without-tears) + available on using `npm` without `sudo`, if you desire to do that. + + * on Windows: + + C:\>npm install -g cordova + + The `-g` flag above tells `npm` to install cordova globally. Otherwise --- End diff -- cordova => `cordova` or **Cordova** as appropriate (see earlier explanation) > clarify instructions for installing via npm and sudo > ---------------------------------------------------- > > Key: CB-6680 > URL: https://issues.apache.org/jira/browse/CB-6680 > Project: Apache Cordova > Issue Type: Improvement > Components: Docs > Reporter: Marcel Kinard > Assignee: Marcel Kinard > Priority: Minor > > The Linux person inside me says that using sudo to install and run things > ought to be avoided if possible. > http://markmail.org/thread/bfj4lywpbzn6mtdr -- This message was sent by Atlassian JIRA (v6.2#6252)