deeleman / learning-angular2

Code samples repository for the examples provided in "Learning Angular 2", published by Packt Publishing - THE BOOK COVERS UP TO RC.1 and hence is severely OUTDATED. PLEASE REFER TO THE LATEST EDITIONS INSTEAD.
https://www.packtpub.com/web-development/learning-angular-2
108 stars 59 forks source link

npm install with -g may require higher privileges access, may want to add a note for that #8

Closed ykoehler closed 8 years ago

ykoehler commented 8 years ago

When using npm install -g typescript on linux it require privileges access. On linux one may have to do "sudo npm install -g typescript". It was obvious for me but some people may get confused.

It may be helpful to add a note there to talk about this potential issue.

deeleman commented 8 years ago

There is actually such alert (although it is more geared towards Mac OS X users though) on page 8!

All in all, the use of sudo is strongly discouraged addressing EACCESS issues upon installing NPM packages globally. You should fix your NPM permissions instead, which is something I strongly advice you to do in this case. Please refer to the following resource at NPM's site to fix your local permissions then: How to fix npm permissions.

Thanks anyways for sharing your concerns! :)