The error says to run to command as root/administrator, so you could try
doing a sudo on the command. That said, hitting it with the sudo hammer
would probably just continue your problems.

When you get an eaccess error, on a non-global installation, it's worth
looking at your personal NPM directories. Sometimes I've gotten that
problem and found that there are some root-owned modules somewhere. It
installs stuff in node_modules, but caches stuff in ~/.npm - you might want
to do a chown -R on that directory to whatever your actual user is.

This tends to happen when you accidentally do a sudo npm install on a
non-global installation, but can probably happen for other reasons too.

In my opinion, and I hope you don't take this the wrong way, your questions
indicate that you are probably a novice using the terminal and command line
in OSX. While restarting from scratch may make it work this time, I
strongly recommend you spend some time learning how it all works.

I know a lot of people don't want to muck around in the weeds of UNIX, but
with a system like this, there's a lot of moving parts to get stuck, and
knowing how it all hangs together should give you a less brittle approach
to solving problems.

Eric



On Wed, Jul 2, 2014 at 7:06 AM, ng-user <[email protected]> wrote:

> This is what I get when run nom install grunt
>
> Is there anyway I can uninstall node, npm, brew, bower completely from my
> computer so i can start from scratch again.
>
>
> On Wednesday, July 2, 2014 3:03:18 PM UTC+1, Sander Elias wrote:
>>
>> run: npm install grunt
>>
>> Regards
>> Sander
>>
>> On Wednesday, July 2, 2014 3:12:43 PM UTC+2, ng-user wrote:
>>>
>>> Hi,
>>>
>>> I was able to install npm successfully when I type in npm --version I
>>> get the following output 1.4.14
>>> But when I try to install grunt using the following command $ sudo nom
>>> install -g grunt-cli
>>> I get an error I have attached the error in the message.
>>>
>>> Any advice about what might be causing this or how i can solve this?
>>>
>>> On Wednesday, July 2, 2014 12:04:03 PM UTC+1, Sander Elias wrote:
>>>>
>>>> I ran the installer, it just worked. But then again, I'm still not on a
>>>> mac ;)
>>>>
>>>> Regards
>>>> Sander
>>>>
>>>  --
> You received this message because you are subscribed to the Google Groups
> "AngularJS" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/angular.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to