Ionic serve error: Permission Denied


#1

Getting this error message after running ionic setup sass. This project was started in Ionic Creator.

ionic $ /Users/joshua.h/Desktop/test-projects/ionic/Zen-Time/node_modules/bower/lib/node_modules/configstore/index.js:54
				throw err;
				      ^
Error: EACCES, permission denied '/Users/joshua.h/.config/configstore/bower-github.json'
You don't have access to this file.

    at Error (native)
    at Object.fs.openSync (fs.js:502:18)
    at Object.fs.readFileSync (fs.js:354:15)
    at Object.create.all.get (/Users/joshua.h/Desktop/test-projects/ionic/Zen-Time/node_modules/bower/lib/node_modules/configstore/index.js:35:26)
    at Object.Configstore (/Users/joshua.h/Desktop/test-projects/ionic/Zen-Time/node_modules/bower/lib/node_modules/configstore/index.js:28:44)
    at readCachedConfig (/Users/joshua.h/Desktop/test-projects/ionic/Zen-Time/node_modules/bower/lib/config.js:19:23)
    at defaultConfig (/Users/joshua.h/Desktop/test-projects/ionic/Zen-Time/node_modules/bower/lib/config.js:11:12)
    at Object.<anonymous> (/Users/joshua.h/Desktop/test-projects/ionic/Zen-Time/node_modules/bower/lib/index.js:16:32)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)

#2

run below commands and try again.

$ sudo chown -R `whoami` .
$ sudo chmod -R a+rwx .

#3

I ran this command and got this error message:

sudo chown -R ‘whoami’ .
Password:
chown: whoami: illegal user name


#4