You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2018/06/26 16:36:19 UTC

[GitHub] dpogue opened a new issue #838: Docs should not encourage global npm installation

dpogue opened a new issue #838: Docs should not encourage global npm installation
URL: https://github.com/apache/cordova-docs/issues/838
 
 
   Currently the docs say to run `sudo npm install -g cordova` which is not great from a best practices standpoint. We should never encourage running npm with sudo because of permissions problems, and npm recommends not installing anything globally if it can be helped.
   
   We should update our documentation to use `npx cordova` instead ([npx](https://blog.npmjs.org/post/162869356040/introducing-npx-an-npm-package-runner) requires npm >=5.2.0), and add cordova as a devDependency to our hello-world project template.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org