<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Shajahan A</title>
    <description>The latest articles on DEV Community by Shajahan A (@shajahan).</description>
    <link>https://dev.to/shajahan</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F138941%2F21852128-0a3d-418c-a38f-b370345e6a23.jpeg</url>
      <title>DEV Community: Shajahan A</title>
      <link>https://dev.to/shajahan</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/shajahan"/>
    <language>en</language>
    <item>
      <title>ENOSPC: System limit for number of file watchers reached | Ubuntu | Emberjs</title>
      <dc:creator>Shajahan A</dc:creator>
      <pubDate>Thu, 23 Jan 2020 15:23:12 +0000</pubDate>
      <link>https://dev.to/shajahan/enospc-system-limit-for-number-of-file-watchers-reached-ubuntu-emberjs-5347</link>
      <guid>https://dev.to/shajahan/enospc-system-limit-for-number-of-file-watchers-reached-ubuntu-emberjs-5347</guid>
      <description>&lt;p&gt;If you are facing this issues&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Stack Trace and Error Report: /tmp/error.dump.9d22f10a74fb98f66d5b433d74cf4b9c.log
internal/fs/watchers.js:173
    throw error;
    ^

Error: ENOSPC: System limit for number of file watchers reached, watch '/home/mymachine/ember-app/tests/helpers'
    at FSWatcher.start (internal/fs/watchers.js:165:26)
    at Object.watch (fs.js:1329:11)
    at NodeWatcher.watchdir (/home/home/mymachine/node_modules/sane/src/node_watcher.js:159:22)
    at Walker.&amp;lt;anonymous&amp;gt; (/home/home/mymachine/node_modules/sane/src/common.js:109:31)
    at Walker.emit (events.js:223:5)
    at Walker.EventEmitter.emit (domain.js:475:20)
    at /home/home/mymachine/node_modules/walker/lib/walker.js:69:16
    at FSReqCallback.oncomplete (fs.js:146:23) {
  errno: -28,
  syscall: 'watch',
  code: 'ENOSPC',
  path: 'home/mymachine/tests/helpers',
  filename: 'home/mymachine/tests/helpers'
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;while working with emberjs in ubunut? Don't worry! We can fix it. It is just hitting your system's file watchers limit.&lt;/p&gt;

&lt;p&gt;To increase the file watchers limit we need to do certain things, first&lt;br&gt;
enter the following command in your terminal&lt;/p&gt;

&lt;p&gt;&lt;code&gt;cat /proc/sys/fs/inotify/max_user_watches&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;You might get output like this some integer.&lt;br&gt;
&lt;code&gt;8192&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Now increase the limit by entering the next command&lt;/p&gt;

&lt;p&gt;&lt;code&gt;echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;The above command will set your file watcher limit to 524288. To see whether it is set or not, type&lt;/p&gt;

&lt;p&gt;&lt;code&gt;sudo sysctl -p&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;output&lt;/em&gt;&lt;br&gt;
&lt;code&gt;fs.inotify.max_user_watches = 524288&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Now, again run your ember server and it'll work fine. &lt;/p&gt;

&lt;p&gt;I hope this post is helful to you, if yes then give a heart. Please comment if you have any issues. Do let me know if you need more emberjs related posts.&lt;/p&gt;

</description>
      <category>ember</category>
      <category>ubuntu</category>
    </item>
    <item>
      <title>How to setup emberjs in ubuntu? | Ember 101</title>
      <dc:creator>Shajahan A</dc:creator>
      <pubDate>Wed, 15 Jan 2020 15:29:04 +0000</pubDate>
      <link>https://dev.to/shajahan/how-to-setup-emberjs-in-ubuntu-ember-101-11nk</link>
      <guid>https://dev.to/shajahan/how-to-setup-emberjs-in-ubuntu-ember-101-11nk</guid>
      <description>&lt;p&gt;This post covers a simple apporach on how to setup emberjs in unbutu.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Prerequisites&lt;/strong&gt;&lt;br&gt;
This guide assumes that you are using Ubuntu 18.04. Note: Throughout this post, we are gonna install either LTS or latest version of the packages.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Install Nodejs
&lt;/h2&gt;

&lt;p&gt;First refresh your local pacakge index&lt;/p&gt;

&lt;p&gt;&lt;code&gt;sudo apt update&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Then copy-paste the following line to install LTS version of nodejs which is 12.14.1 at the time of writing.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;curl -sL https://deb.nodesource.com/setup_12.14.1 | sudo -E bash -&lt;br&gt;
sudo apt install -y nodejs&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: Install NPM
&lt;/h2&gt;

&lt;p&gt;Now type the following line in your terminal to install the npm&lt;/p&gt;

&lt;p&gt;&lt;code&gt;sudo apt install npm&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;NPM helps you with installing and managing nodejs modules.&lt;br&gt;
Now time to check both nodejs and npm are installed successfully or not by typing the following line in your terminal.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;node -v&lt;/code&gt;&lt;br&gt;
&lt;em&gt;output:&lt;/em&gt;&lt;br&gt;
&lt;code&gt;12.14.1&lt;/code&gt;&lt;br&gt;
&lt;code&gt;npm -v&lt;/code&gt;&lt;br&gt;
&lt;em&gt;output:&lt;/em&gt;&lt;br&gt;
&lt;code&gt;6.13.4&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: Install Emberjs
&lt;/h2&gt;

&lt;p&gt;we are almost there, now you can install emberjs by using this single line command.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;npm install -g ember-cli&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Please verify the ember installation by typing this command in your terminal&lt;/p&gt;

&lt;p&gt;&lt;code&gt;ember --version&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;output:&lt;/em&gt;&lt;br&gt;
&lt;code&gt;&lt;br&gt;
ember-cli: 3.15.1&lt;br&gt;
node: 12.14.1&lt;br&gt;
os: linux x64&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;If you see the above output in your terminal, Congrats you are succesfully installed Emberjs in your machine.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: Create an new ember app
&lt;/h2&gt;

&lt;p&gt;You can use the following command to create a new ember app. &lt;/p&gt;

&lt;p&gt;&lt;code&gt;ember new ember-hello-app&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Once its done, now go into the application directory&lt;/p&gt;

&lt;p&gt;&lt;code&gt;cd ember-hello-app&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Run&lt;/p&gt;

&lt;p&gt;&lt;code&gt;ember serve&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;After couple of seconds you will see the output like below &lt;/p&gt;

&lt;p&gt;&lt;code&gt;&lt;br&gt;
Livereload server on http://localhost:7020&lt;br&gt;
Serving on http://localhost:4200/&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Check the app by opening the url &lt;code&gt;http://localhost:4200/&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Hurray!! Now emberjs app is successfully running in your machine. Please leave a comment if you have any issues.&lt;br&gt;
I hope you find this post useful. If you want to see more emberjs related posts give a heart. &lt;/p&gt;

</description>
      <category>ember</category>
      <category>ubuntu</category>
    </item>
  </channel>
</rss>
