Permissions issue during installation

499 views
Skip to first unread message

Rich Leach

unread,
Jan 10, 2018, 5:59:43 PM1/10/18
to Angular and AngularJS discussion
I recently purchased the Material Design with Bootstrap for Angular.

https://mdbootstrap.com/angular/5min-quickstart/

I've been wrestling with my Mac trying to get it installed over the last few days, mainly permission issues.... The support guys over there are very cool and have been dealing with my beginner issues, but I think something else may be up with my system....

Whenever I run their install command from within my project, for example:


I get a lengthy result but in it is always this problem:
...

gyp verb get node dir target node version installed: 8.9.4

gyp verb build dir attempting to create "build" dir: /Users/rich/Desktop/angular02/node_modules/node-sass/build

gyp ERR! configure error 

gyp ERR! stack Error: EACCES: permission denied, mkdir '/Users/rich/Desktop/angular02/node_modules/node-sass/build'

gyp ERR! System Darwin 15.6.0

...


But here's the problem: the error message says permission denied for the mkdir command on the directory, so I simply went and set the permissions on my project folder (and all enclosed items) to access for everyone. But the error still keeps coming and the install fails, and even running ng serve fails (complains it can't find module node-sass, which is what's being blocked). 
What else can I do besides manually setting my project folder's permissions to make this installation work? 

Yes, I've uninstalled, reinstalled Node/CLI/Angular....

Thanks,

Rich




My configuration:

Angular CLI: 1.5.0

Node: 8.9.4

OS: darwin x64

Angular: 5.2.0

... animations, common, compiler, compiler-cli, core, forms

... http, language-service, platform-browser

... platform-browser-dynamic, router


@angular/cli: 1.5.0

@angular-devkit/build-optimizer: 0.0.36

@angular-devkit/core: 0.0.22

@angular-devkit/schematics: 0.0.42

@ngtools/json-schema: 1.1.0

@ngtools/webpack: 1.8.0

@schematics/angular: 0.1.11

@schematics/schematics: 0.0.11

typescript: 2.5.3

webpack: 3.10.0



Tito

unread,
Jan 10, 2018, 7:43:07 PM1/10/18
to Angular and AngularJS discussion


On Wednesday, January 10, 2018 at 2:59:43 PM UTC-8, Rich Leach wrote:
I recently purchased the Material Design with Bootstrap for Angular.

https://mdbootstrap.com/angular/5min-quickstart/

I've been wrestling with my Mac trying to get it installed over the last few days, mainly permission issues.... The support guys over there are very cool and have been dealing with my beginner issues, but I think something else may be up with my system....

Whenever I run their install command from within my project, for example:

Rich Leach

unread,
Jan 12, 2018, 12:08:08 AM1/12/18
to Angular and AngularJS discussion
Thank you again Tito!

I wasn't able to solve my problem with any of the chmod or chgrp commands so I'll have to look into using an installer helper (Homebrew? Have you used it?) over the weekend.

Thanks again buddy!

Rich

Tito

unread,
Jan 12, 2018, 10:26:17 AM1/12/18
to Angular and AngularJS discussion
At previous company I worked at, lots of the devs had Mac and they used homebrew. I believe its the defacto tool for pm

Hope you are making great progress with your learning angular
Reply all
Reply to author
Forward
0 new messages