I'm trying to get into using my terminal on a mac. I installed npm
sucessfully and when I type npm --version
it gives me 2.14.12
. With npm I installed bower and I think it worked. But I have two questions:
when I type
bower -v
it gives me this:/usr/local/lib/node_modules/bower/node_modules/configstore/index.js:56 throw err; ^ Error: EACCES: permission denied, open '/Users/philip/.config/configstore/bower- github.yml' You don't have access to this file. at Error (native) at Object.fs.openSync (evalmachine.<anonymous>:549:18) at Object.fs.readFileSync (evalmachine.<anonymous>:397:15) at Object.create.all.get (/usr/local/lib/node_modules/bower/node_modules/configstore/index.js:34:29) at Object.Configstore (/usr/local/lib/node_modules/bower/node_modules/configstore/index.js:27:44) at readCachedConfig (/usr/local/lib/node_modules/bower/lib/config.js:19:23) at defaultConfig (/usr/local/lib/node_modules/bower/lib/config.js:11:12) at Object.<anonymous> (/usr/local/lib/node_modules/bower/lib/index.js:16:32) at Module._compile (module.js:435:26) at Object.Module._extensions..js (module.js:442:10)
but when I type sudo bower -v
it works and gives me 1.7.2 after I typed in my password. Why doesn't it work without sudo?
I wanted to install bootstrap 4 in a folder on my desktop so with
cd
I went to the directory and typedbower install bootstrap#v4.0.0-alpha.2
and it gives me this:/usr/local/lib/node_modules/bower/node_modules/configstore/index.js:56 throw err; ^
Error: EACCES: permission denied, open '/Users/philip/.config/configstore/bower-github.yml' You don't have access to this file.
at Error (native)
at Object.fs.openSync (evalmachine.<anonymous>:549:18)
at Object.fs.readFileSync (evalmachine.<anonymous>:397:15)
at Object.create.all.get (/usr/local/lib/node_modules/bower/node_modules/configstore/index.js:34:29)
at Object.Configstore (/usr/local/lib/node_modules/bower/node_modules/configstore/index.js:27:44)
at readCachedConfig (/usr/local/lib/node_modules/bower/lib/config.js:19:23)
at defaultConfig (/usr/local/lib/node_modules/bower/lib/config.js:11:12)
at Object.<anonymous> (/usr/local/lib/node_modules/bower/lib/index.js:16:32)
at Module._compile (module.js:435:26)
at Object.Module._extensions..js (module.js:442:10)
Can somebody tell me why? Thanks!
EDIT:
I'm that far now:
Philips-MacBook-Pro:test philip$ bower install bootstrap
bower bootstrap#* not-cached git://github.com/twbs/bootstrap.git#*
bower bootstrap#* resolve git://github.com/twbs/bootstrap.git#*
bower bootstrap#* ECMDERR Failed to execute "git ls-remote --tags --heads git://github.com/twbs/bootstrap.git", exit code of #69 Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.
Additional error details:
Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.