浏览代码

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

Sebastian Sastre 10 年之前
父节点
当前提交
2fe254649b
共有 1 个文件被更改,包括 5 次插入15 次删除
  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
 npm install -g amber-cli
 {% endhighlight %}
 {% endhighlight %}
 
 
-Ubuntu users will have to evaluate it with `sudo`:
-
-{% highlight sh %}
-sudo npm install -g amber-cli
-{% endhighlight %}
-
-
 ### 2. The bower component
 ### 2. The bower component
 
 
 <p class="note">
 <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.
 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>
 </p>
 
 
-
 The npm package doesn't provide the JavaScript files required to load
 The npm package doesn't provide the JavaScript files required to load
 Amber in a page. This is instead provided by the bower package.
 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
 Amber. Unlike npm, Bower components are meant to be used inside the
 web browser.
 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,
 In the root directory of the project,
 Amber bower component can be installed either by
 Amber bower component can be installed either by
 
 
-```sh
+{% highlight sh %}
 bower install amber --save
 bower install amber --save
-```
+{% endhighlight %}
 
 
 or by adding a `bower.json` file like the following:
 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 %}
 {% endhighlight %}
 
 
 and evaluating
 and evaluating
-```sh
+{% highlight sh %}
 bower install
 bower install
-```
+{% endhighlight %}
 
 
 In both cases, Amber will be installed in a directory named `bower_components`.
 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.
 We will see in the next section how to setup a project using bower.