diegonetto / generator-ionic

Build hybrid mobile apps using the Ionic Framework
MIT License
1.74k stars 336 forks source link

Installation error #246

Closed zhouhao27 closed 9 years ago

zhouhao27 commented 9 years ago

Here is my error message when I run sudo npm install -g generator-ionic:

shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied node.js:720 var cwd = process.cwd();

zhouhao27 commented 9 years ago

I solve the issue by:

sudo npm install -g generator-ionic --ignore-scripts

But I don't know if there is any side effect.

zhouhao27 commented 9 years ago

I delete all npm and node. And reinstall again. Everything's fine