Browse Source

chore(install): removes instructions guiding users to use sudo npm and adjusts sh highlights

Sebastian Sastre 9 years ago
parent
commit
2fe254649b
1 changed files with 5 additions and 15 deletions
  1. 5 15
      overview/1-installing-amber.md

+ 5 - 15
overview/1-installing-amber.md

@@ -66,20 +66,12 @@ Once nodejs and npm are installed, evaluate:
 npm install -g amber-cli
 {% endhighlight %}
 
-Ubuntu users will have to evaluate it with `sudo`:
-
-{% highlight sh %}
-sudo npm install -g amber-cli
-{% endhighlight %}
-
-
 ### 2. The bower component
 
 <p class="note">
 The following section explains how to manually setup Amber using Bower. The <code>amber init</code> command provided by the npm package automates it. Unless you want to (a) understand how it works or (b) setup Amber differently, you can refer to the <a href="/getting-started.html">getting started</a> page.
 </p>
 
-
 The npm package doesn't provide the JavaScript files required to load
 Amber in a page. This is instead provided by the bower package.
 
@@ -88,15 +80,14 @@ easy to manage dependencies in your application including
 Amber. Unlike npm, Bower components are meant to be used inside the
 web browser.
 
-If not already present, Bower is installed using npm: `npm install -g bower`,
-on some OSes (Linux, FreeBSD) `sudo npm install -g bower`.
+If not already present, Bower is installed using npm: `npm install -g bower`
 
 In the root directory of the project,
 Amber bower component can be installed either by
 
-```sh
+{% highlight sh %}
 bower install amber --save
-```
+{% endhighlight %}
 
 or by adding a `bower.json` file like the following:
 
@@ -110,11 +101,10 @@ or by adding a `bower.json` file like the following:
 {% endhighlight %}
 
 and evaluating
-```sh
+{% highlight sh %}
 bower install
-```
+{% endhighlight %}
 
 In both cases, Amber will be installed in a directory named `bower_components`.
 
-
 We will see in the next section how to setup a project using bower.