Can't install angular-cli on Mac

can definition
can synonym
can.'' acronym
can band
meaning of can in hindi
can y
can pronunciation

This is probably very trivial, but I am hitting my head against the wall while I am trying to (unsuccessfully) install angular-cli.

I am following the official angular-cli documentation here.

mkotsollariss-MacBook-Pro:~ mkotsollaris$ npm -v
mkotsollariss-MacBook-Pro:~ mkotsollaris$ node -v

Then I run npm install -g angular-cli which gives me:

mkotsollariss-MacBook-Pro:~ mkotsollaris$ npm install -g angular-cli
npm WARN deprecated angular-cli@1.0.0-beta.28.3: angular-cli has been renamed to @angular/cli. Please update your dependencies.
npm WARN deprecated gulp-util@3.0.7: gulp-util is deprecated - replace it, following the guidelines at
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN @angular/core@2.4.10 requires a peer of rxjs@^5.0.1 but none is installed. You must install peer dependencies yourself.
npm ERR! path /Users/mkotsollaris/.npm-packages/lib/node_modules/.staging/@angular
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall rmdir
npm ERR! Error: EACCES: permission denied, rmdir '/Users/mkotsollaris/.npm-packages/lib/node_modules/.staging/@angular'
npm ERR!  { Error: EACCES: permission denied, rmdir '/Users/mkotsollaris/.npm-packages/lib/node_modules/.staging/@angular'
npm ERR!   stack: 'Error: EACCES: permission denied, rmdir \'/Users/mkotsollaris/.npm-packages/lib/node_modules/.staging/@angular\'',
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'rmdir',
npm ERR!   path: '/Users/mkotsollaris/.npm-packages/lib/node_modules/.staging/@angular' }
npm ERR! 
npm ERR! Please try running this command again as root/Administrator.
npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/mkotsollaris/.npm/_logs/2018-01-14T23_11_22_610Z-debug.log
mkotsollariss-MacBook-Pro:~ mkotsollaris$ ng
-bash: ng: command not found

I think I have tried almost everything on the web, and still can't make this to work.

My OS is MacOS High Sierra 10.13.2.

Any idea what am I missing here?

After several tries, I finally installed angular-cli successfully via nvm. In detail:

Install nvm:

curl -o- | bash
export NVM_DIR="/Users/mkotsollaris/.nvm"
[ -s "$NVM_DIR/" ] && \. "$NVM_DIR/"
nvm --version

Then install node through nvm:

nvm install stable
nvm install node

Thereafter, install angular-cli:

npm install -g @angular/cli
mkotsolarissMBP:myapp mkotsollaris$ ng -v

    _                      _                 ____ _     ___
   / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
  / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
 / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
/_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|

Angular CLI: 1.6.5
Node: 9.4.0
OS: darwin x64
Angular: 5.2.1
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

@angular/cli: 1.6.5
@angular-devkit/build-optimizer: 0.0.41
@angular-devkit/core: 0.0.28
@angular-devkit/schematics: 0.0.51
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.9.5
@schematics/angular: 0.1.16
typescript: 2.5.3
webpack: 3.10.0
mkotsolarissMBP:myapp mkotsollaris$ 

Verify that ng works properly:

ng new my-project
cd my-project
ng serve

The app will start on localhost:4200.

Can, VerbEdit. can (third-person singular simple present can, present participle -, simple past could, past participle (obsolete except in  Can definition, to be able to; have the ability, power, or skill to: She can solve the problem easily, I'm sure. See more.

i faced similar issue while installing angular-cli on Mac Mojave.

Correct installation steps are:

  1. Install npm using package manager.
  2. above step sets the directory owner of /usr/local/lib/node_modules/ to root.
  3. execute below command to set the owner to your user: sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share}

  4. npm install -g @angular/cli (avoid using sudo)

Can, Can was the leading avant-garde rock group of the 70s. Can experimented with noise, synthesizers, non-traditional music, cut-and-paste techniques, and, most  Define can. can synonyms, can pronunciation, can translation, English dictionary definition of can. to be able to, have the power or skill to: I can take a bus to the

Try this:

sudo npm install -g @angular/cli 

can, can meaning: 1. to be able to: 2. used to say that you can and will do something: 3. to be allowed to: . Learn more. can definition: 1. to be able to: 2. used to say that you can and will do something: 3. to be allowed to: . Learn more.

To get rid of access errors, these steps can help:

Step1: Homebrew installation[]: (on terminal)

/usr/bin/ruby -e "$(curl -fsSL"

Step2: brew install node

Check version: node -v, npm -v

Step3: brew install -g angular-cli

Check version: ng --version

Step4: ng new First-App

The Official CAN / Spoon Records Website, If parents can access child care, they're more likely to enter the workforce and of course, to stay employed," San Diego Mayor Kevin Faulconer  110 synonyms of can from the Merriam-Webster Thesaurus, plus 97 related words, definitions, and antonyms. Find another word for can. Can: to bring (as an action or operation) to an immediate end.

After going back and forth i used homebrew. Just run: "sudo brew install angular-cli" If you have homebrew installed, it solved all my problems including node-sass issues on angular 7

CAN, What does can mean? can is defined by the lexicographers at Oxford Dictionaries as Be able to., Be permitted to., Used to request someone to do something. Create beautiful designs with your team. Use Canva's drag-and-drop feature and layouts to design, share and print business cards, logos, presentations and more.

Live Blog: San Diego County Reports 114 New Cases, 7 New , can. (kæn). n. 1. a container, esp for liquids, usually of thin sheet metal: a petrol can;  Create beautiful designs with your team. Use Canva's drag-and-drop feature and layouts to design, share and print business cards, logos, presentations and more.

Can, A can is a metal container in which something such as food, drink, or paint is put. The container is usually sealed to keep the contents fresh. Several young men  You can withdraw your consent to receive text messages about Canadian Tire Auto offers at any time by texting STOP to 38667. Contact us at P.O. Box 2000, Welland, ON L3B 5S3 or 1-800-387-8803 or

Can, System Requirements. Here is the answer to Can I run PUBG or Destiny 2? Is my computer fast enough to run CoD WW2? Are the system requirements for GTA 5 better than my computer? Can my graphics card meet the minimum or recommended requirements for Assassin’s Creed: Origins or Fortnite Battle Royal? Difficult questions.

  • Please try running this command again as root/Administrator. Did you try using sudo?
  • @VSG24 Not necessary, nor constructive. Flagged.
  • @SterlingArcher Running with sudo gives me "Warning "root" does not have permission to access the dev dir" which leads me to this which does not solve the issue...
  • Angular CLI GitHub page is the best resource for how to install the CLI. The link you are using is instructing you to install a version of the CLI that is no longer supported; hasn't been for many months.
  • This worked. Before using this method, the installed failed at the python library section.
  • Menelaos Kotsollaris - great answer. Thank you
  • Just curious... why did only installing through nvm work? :(
  • A very minor correction: use 'ng version' in Angular CLI: 7.2.3. Just 'ng -v' now yields the list of available commands (including version :)
  • Can anyone explain why using nvm worked while using sudo npm install -g @angular/cli and linking did not work?
  • Works great. Thanks!
  • Thanks, this was useful
  • simplest solution!
  • thanks but that didn't work for me; I ended up installing @angular/cli through nvm.