angular-cli


Angular CLI install error


I keeping getting this error when I run npm install -g angular-cli on MacOS:
npm ERR! node v6.9.2
npm ERR! npm v3.10.9
npm ERR! path /usr/local/lib/node_modules
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules'
npm ERR! at Error (native)
npm ERR! { Error: EACCES: permission denied, access '/usr/local/lib/node_modules'
npm ERR! at Error (native)
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path: '/usr/local/lib/node_modules' }
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/apple/npm-debug.log
When you use npm install -g on any platform and you get EACCES, you are writing to a directory for which you do not have write permission.
Some may recommend using sudo, but this will lead to more problems in the future. The npm documentation provides steps to fix this.
I highly recommend option 3, using Homebrew to install Node.

Related Links

angular-cli ng serve : Error: No errors
Getting error after Angular cli update
Does angular-cli uses rollup to do ahead-of-time compilation and adding all into one file?
Angular CLI install error
Using glob for assets in angular-cli throws error
Importing Global SCSS into Component SCSS with Angular-CLI
Error during AOT build with angular-cli 24 and Angular 2.4.1
Add importer to node-sass in angular-cli project
angular-cli#1.0.0-beta.23 (2016-12-15) NOT on npm
Angular cli for existing github project
How to pass config data to NgModule so NgModule will be compiled with AOT
Cloning a repo based on Angular CLI
How can I speed up Angular CLI Live Reload - 1-2 minutes per change
Generating a barrel when calling ng g component <myName>
Setting up tether-drop to work with angular-cli#1.0.0-beta.24
Angular CLI (AOT) gives error: ERROR in Cannot determine the module for class

Categories

HOME
laravel-5
redis
firebase-app-indexing
google-contacts
otrs
mapbox-gl-js
histogrammar
ext.net
filter
avl-tree
powershell-v3.0
nixos
xul
finite-group-theory
automata
qt-installer
symfony-forms
simple-injector
riak
atlassian-plugin-sdk
jogl
mousewheel
spring-ws
multiplayer
http-method
tampermonkey
rhmap
mef2
unpack
system.data.sqlite
winscp
reactiveui
invoke-command
node-horseman
ios-ui-automation
phpspreadsheet
sql-like
image-compression
brute-force
cross-entropy
android-preferences
ssh.net
cppunit
fastq
fqdn
range-v3
nstouchbar
mouseclick-event
maintenance
pluck
modelattribute
build-process
sql-server-administration
cfeclipse
software-product-lines
tuxedo
uiprogressview
boost-hana
gherkin
console-redirect
mfc-feature-pack
yoothemes
bluesnap
anythingslider
cctray
persistence.xml
evo
ubercart
lines-of-code
consensus
multipleselection
android-search
orientation-changes
libsndfile
scala-2.11
firebug-lite
eclipse-classpath
ifft
magic-numbers
delphi-xe3
winrt-httpclient
gamepad
angulartics
onselect
nscolor
vmware-server
windows-update
multiple-conditions
fortran77
sametime
pys60
git-filter-branch
css-tables
qsqltablemodel
fotoware
rose-db-object
jpf
v4l
shared-objects
webkit-transform
tcxgrid
gtk2hs
dashcode
sendfile
loadui
iphone-sdk-3.2
interface-design

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App