From 62428c2f9f5cb9aa6fd8b0c7032309ebab0986cd Mon Sep 17 00:00:00 2001 From: linagee Date: Wed, 26 Aug 2015 09:11:23 -0600 Subject: [PATCH] npm -g install with no sudo I've tested this to allow installation of embark-framework without requiring using sudo. --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 3e2b4c4d1..b368870da 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,16 @@ For specs: pyethereum, ethertdd.py $ npm install -g embark-framework grunt-cli ``` +If you get EACCES (access denied) errors, it is not recommended to use sudo, please try this: + +```Bash +$ mkdir ~/npm-global +$ npm config set prefix ~/npm-global +$ echo 'export PATH="$PATH:$HOME/npm-global/bin"' >>~/.bashrc +$ source ~/.bashrc +$ npm install -g embark-framework grunt-cli +``` + See [Complete Installation Instructions](https://github.com/iurimatias/embark-framework/wiki/Installation). Usage - Demo