Install npm, nodejs - using laravel gulp
<p>I'm using Linux. I'm trying to use gulp using Laravel 5.2. I've installed nodejs like that:</p>

<p><code>sudo apt-get install nodejs</code></p>

<p>I've also installed npm:</p>

<p><code>sudo apt-get install npm</code></p>

<p>I have the newest versions of both of them. But it doesn't create folder <code>node_modules</code> in root directory of my project.
I've linked them - I've tried to check that:</p>

<p><code>sudo ln -s /usr/bin/nodejs /usr/bin/node
ln: failed to create symbolic link ‘/usr/bin/node’: File exists
</code></p>

<p>My packaage.json file is:</p>

<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code>{
  "private": true,
  "scripts": {
    "prod": "gulp --production",
    "dev": "gulp watch"
  },
  "devDependencies": {
    "gulp": "^3.9.1",
    "laravel-elixir": "^5.0.0",
    "bootstrap-sass": "^3.0.0"
  }
}</code></pre>
</div>
</div>
</p>

<p>Gulpfile.js is:</p>

<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code>var elixir = require('laravel-elixir');

/*
 |--------------------------------------------------------------------------
 | Elixir Asset Management
 |--------------------------------------------------------------------------
 |
 | Elixir provides a clean, fluent API for defining some basic Gulp tasks
 | for your Laravel application. By default, we are compiling the Sass
 | file for our application, as well as publishing vendor resources.
 |
 */

elixir(function(mix) {
    mix.sass('app.scss');
});</code></pre>
</div>
</div>
</p>

<p>My /resources/assets/css/app.scss file is:</p>

<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code> @import "node_modules/bootstrap-sass/assets/stylesheets/bootstrap";

.container {
 color: purple;
}
h1 {
 color:green;
}
body {
 background-color: red;
 font-size:10px;
}</code></pre>
</div>
</div>
</p>

<p>In my editor there is error:
<code>Can't resolve import into sass/scss file</code>.
because I don't have folder <code>node_modules</code>.</p>

<p>How to make that work? What I haven't done correct? When I run gulp </p>

<p>Thanks!</p>

<p>Edited: When I install npm:</p>

<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code>sudo apt-get install npm
Reading package lists... Done
Building dependency tree       
Reading state information... Done
npm is already the newest version.
The following packages were automatically installed and are no longer required:
  ant ant-optional antlr3 aspectj bsh javahelp2 junit junit-doc junit4
  junit4-doc libantlr-java libasm3-java libaspectj-java libbeansbinding-java
  libbetter-appframework-java libbindex-java libbsh-java libbytelist-java
  libcglib-java libcommons-codec-java libcommons-net1-java libeasymock-java
  libfelix-framework-java libfelix-main-java libflute-java libfreemarker-java
  libgeronimo-jpa-2.0-spec-java libgeronimo-osgi-support-java libhamcrest-java
  libini4j-java libjcodings-java libjemmy2-java libjetty-java libjline-java
  libjna-java libjoda-time-java libjsch-java libjvyamlb-java libjzlib-java
  liblucene2-java libnb-absolutelayout-java libnb-apisupport3-java
  libnb-ide14-java libnb-java5-java libnb-javaparser-java
  libnb-org-openide-modules-java libnb-org-openide-util-java
  libnb-org-openide-util-lookup-java libnb-platform-devel-java
  libnb-platform13-java libnetx-java liboro-java libosgi-compendium-java
  libosgi-core-java libosgi-foundation-ee-java libsac-java
  libsequence-library-java libserf-1-1 libservlet2.5-java
  libsimple-validation-java libslf4j-java libsqljet-java
  libstringtemplate-java libsvn-java libsvn1 libsvnclientadapter-java
  libsvnkit-java libswing-layout-java libswingx1-java libtrilead-ssh2-java
  libxerces2-java libxml-commons-external-java libxml-commons-resolver1.1-java
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 55 not upgraded.</code></pre>
</div>
</div>
</p>

<p>And when I install npm:</p>

<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code>sudo apt-get install nodejs
Reading package lists... Done
Building dependency tree       
Reading state information... Done
nodejs is already the newest version.
nodejs set to manually installed.
The following packages were automatically installed and are no longer required:
  ant ant-optional antlr3 aspectj bsh javahelp2 junit junit-doc junit4
  junit4-doc libantlr-java libasm3-java libaspectj-java libbeansbinding-java
  libbetter-appframework-java libbindex-java libbsh-java libbytelist-java
  libcglib-java libcommons-codec-java libcommons-net1-java libeasymock-java
  libfelix-framework-java libfelix-main-java libflute-java libfreemarker-java
  libgeronimo-jpa-2.0-spec-java libgeronimo-osgi-support-java libhamcrest-java
  libini4j-java libjcodings-java libjemmy2-java libjetty-java libjline-java
  libjna-java libjoda-time-java libjsch-java libjvyamlb-java libjzlib-java
  liblucene2-java libnb-absolutelayout-java libnb-apisupport3-java
  libnb-ide14-java libnb-java5-java libnb-javaparser-java
  libnb-org-openide-modules-java libnb-org-openide-util-java
  libnb-org-openide-util-lookup-java libnb-platform-devel-java
  libnb-platform13-java libnetx-java liboro-java libosgi-compendium-java
  libosgi-core-java libosgi-foundation-ee-java libsac-java
  libsequence-library-java libserf-1-1 libservlet2.5-java
  libsimple-validation-java libslf4j-java libsqljet-java
  libstringtemplate-java libsvn-java libsvn1 libsvnclientadapter-java
  libsvnkit-java libswing-layout-java libswingx1-java libtrilead-ssh2-java
  libxerces2-java libxml-commons-external-java libxml-commons-resolver1.1-java
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 55 not upgraded.</code></pre>
</div>
</div>
</p>