npm -g install with no sudo

I've tested this to allow installation of embark-framework without requiring using sudo.
This commit is contained in:
linagee 2015-08-26 09:11:23 -06:00
parent 14f98c0020
commit 62428c2f9f
1 changed files with 10 additions and 0 deletions

View File

@ -23,6 +23,16 @@ For specs: pyethereum, ethertdd.py
$ npm install -g embark-framework grunt-cli $ 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). See [Complete Installation Instructions](https://github.com/iurimatias/embark-framework/wiki/Installation).
Usage - Demo Usage - Demo