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 with Stylus doesn't work
Use angular-cli proxy for multiple backends
chunk files size are multiplied by 5 on build size ng build --prod
AngularCli: disable minification
Angular Cli e2e element explorer not responding
Angular cli generate a service and include the provider in one step
Angular-cli not generating dist directory with ng build
How to update service json or array value on click in angular2?
How to revert from Angular-cli to Angular without cli for server-side rendering with Angular Universal
How to change file index outside the root
angularCLI Access-Control-Allow-Origin Multiple Origin Domains
Angular CLI how to merge json files
Angular CLI (ng) use single instead of double quotes
can't install angular cli on ubuntu 16.04
How to solve No 'Access-Control-Allow-Origin' header is present on the requested resource with angular 2 service written with angular-cli?
Usage of watch parameter in eject command of Angular CLI

Categories

HOME
jdbc
redis
vb6
itext
fparsec
wxwidgets
youtube-livestreaming-api
phpstorm
codeeffects
apiconnect
websphere-liberty
pygame
wysiwyg
ctypes
tee
multiple-monitors
ms-access-2007
mousewheel
android-fragmentactivity
logarithm
printdocument
ui5
fetch-api
pentaho-report-designer
aurelia-binding
strophe
large-data
precedence
socketpair
concrete5-5.7
brute-force
bayesian-networks
ical-dotnet
worker
context-free-language
floor
recycle-bin
data-integration
chown
ti-basic
ogre3d
openh264
android-bitmap
sql-import-wizard
c#-interactive
activeweb
spark-cassandra-connector
ng2-material
inotifypropertychanged
fps
asynccallback
xmp
optionbutton
textkit
python-winshell
qbfc
mptcp
epl
jcr-sql2
pisa
django-1.6
tilestache
activity-streams
ibmsbt
snmp4j
system.web
valence
joox
factors
db4o
sim900
real-time-updates
arbor.js
sunspot-rails
tfs-power-tools
subtract
gjs
text-services-framework
executable-format
pivotal-crm
clause
hibernate3-maven-plugin
sitemappath
communicationexception
ajaxpro
cots

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