Skip to content

Cannot install angular-cli #7556

@kkanedaa

Description

@kkanedaa

I am trying to install angular-cli (v.1.0). I have two Mac computers, on which one device (MacBook Pro Mid-2015) the installation was successful. But on my other Mac (iMac Early-2011), I get the following error message:

`npm ERR! Darwin 16.7.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "-f" "@angular/cli"
npm ERR! node v6.11.2
npm ERR! npm v3.10.10
npm ERR! path ../lib/node_modules/@angular/cli/bin/ng
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall symlink

npm ERR! Error: EACCES: permission denied, symlink '../lib/node_modules/@angular/cli/bin/ng' -> '/usr/local/bin/ng'
npm ERR! at Error (native)
npm ERR! { Error: EACCES: permission denied, symlink '../lib/node_modules/@angular/cli/bin/ng' -> '/usr/local/bin/ng'
npm ERR! at Error (native)
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'symlink',
npm ERR! path: '../lib/node_modules/@angular/cli/bin/ng',
npm ERR! dest: '/usr/local/bin/ng' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! Please include the following file with any support request:
npm ERR! /Users/Kaneda/npm-debug.log
npm ERR! code 1`

I used the following command to install it (without success):

npm install -g -f @angular/cli

After it failed, I tried to clean the cache, uninstall it, and try one more time - again without success (same error message as above):

npm cache clean
npm uninstall -g @angular/cli
npm install -g @angular/cli

In the error message, it says permission denied, but I am the only user on this mac with admin privileges.

Does anyone know what is wrong and why I cannot install it?

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions