Skip to main content

Posts

Error: ENOSPC: System limit for number of file watchers reached, watch

 Hi, Dependency version details. node: v15.8.0 nvm: 0.33.2 nodejs: v4.2.6 When I run an "npm start" command I'm getting this error. Error: ENOSPC: System limit for number of file watchers reached, watch '/var/www/html/project/simple-mern-project/frontend/public ' Error message: I found the solution from this StackOverflow URL:  https://stackoverflow.com/questions/55763428/react-native-error-enospc-system-limit-for-number-of-file-watchers-reached This is the command, I run to solve the issue:  # insert the new value into the system config echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p # check that the new value was applied cat /proc/sys/fs/inotify/max_user_watches # config variable name (not runnable) fs.inotify.max_user_watches=524288
Recent posts

nvm is not compatible with the npm config "prefix" option

Hi All, When I open the terminal, I'm getting this error. I run this command to solve that issue. npm config set prefix $NVM_DIR/versions/node/v7.10.0

Install a node & npm specific versions using nvm (Node Version Manager)

Hi buddies, When i tried to install a node & npm in my system, i will be facing some problem with the version. I want to install a recent LTS (Long Term Support) Don't Do (If you want to install a specific version):  I don't know, how its gonna installed, but its not a recent Node LTS version sudo apt-get install nodejs-legacy sudo apt-get install npm Do (Using a NVM- Node Version Manager to install a specific version): Use the following command to install a NVM into your system $ curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash Reload the system environment using this command $ source ~/.profile $ source ~/.bashrc List all the nodejs version using this command $ nvm ls-remote Install a nodejs version, what ever you want (If you want to install multiple node version you can install using this command) $ nvm install 6.11.1 $ nvm install 8.2.1 List a node version using this command

The requested URL /phpmyadmin was not found on this server. Apache/2.4.18 (Ubuntu) Server at localhost Port 80

Hi dudes, I'm getting Not Found error, when i hit a  http://localhost/phpmyadmin/ url, but i my system php, mysql & apache2 is already installed still i'm getting this error When i do this following step, the error get fixed. Do the following steps & EnjoyπŸ˜ƒπŸ˜„πŸ˜…πŸ˜„πŸ˜„πŸ˜ƒ You need to configure your apache2.conf to make phpMyAdmin work. For more detail Please read  this section  in Ubuntu wiki. open a termianl and run gksu gedit /etc/apache2/apache2.conf Then add the following line to the end of the file. Include /etc/phpmyadmin/apache.conf Then restart apache /etc/init.d/apache2 restart

PHP Script Not running on the browser Ubuntu 16.04

Typing: sudo apt-get install apache2 php5 libapache2-mod-php5 will install everything you need and will start the apache server with support for PHP. To verify that the php module is loaded, type: a2query -m php5 if not enabled, then load with: sudo a2enmod php5 and restart apache: sudo service apache2 restart Update for php7.0, tested on Ubuntu 16.04 and 16.10 Thanks to the comments, I update the answer for php7. Install: sudo apt-get install apache2 php7.0 libapache2-mod-php7.0 Verify: a2query -m php7.0 Load: sudo a2enmod php7.0 Restart apache: sudo service apache2 restart

While Checkout a branch files as been deleted, retrieve those files from a repository

Hi friends, I have faced some critical case in git. Initial I have three branches master, dev, staging . In dev and staging branches I have followed all the commits up to date. I have followed these steps regularly for each and every process (For branching strategy). All the initial configuration has been done previously. git add . (Currently I'm in dev branch) git commit -m "Commit message" git push origin dev git checkout staging git fetch git pull origin staging git merge --no-ff dev git push origin staging git checkout dev I have just maintained the initial commit only in the master branch. One day when I try to checkout master branch, all my changes as been changed to deleted state. I have lost all my changes. I have retrieved my changes by using this command git reset --hard origin/dev Just try this command to get you changes back to it.

How to fix PHP Version difference in browser and terminal (In Ubuntu)

Hi friends.,                 Today I have faced some problem in PHP version, in my terminal. I just hit a command in terminal (php -v) to know the PHP version, it showing PHP 7.0. Then I have checked in the browser by using phpinfo(), it has shown as PHP 5.6. Then I have some other problem related to this, then  I can't able to install related plugins in PHP 5.6.               Finally, i got some solution to change the PHP version in terminal sudo ln -sfn /usr/bin/php7.0 /etc/alternatives/php   -> (PHP 5.6  to PHP 7.0) sudo ln -sfn /usr/bin/php5.6 /etc/alternatives/php   -> (PHP 7.0 to PHP 5.6)       Change PHP version: First disable your current PHP version Enable, which PHP version you want to change Restart the apache Step for PHP 5.6 to PHP 7.0: sudo a2dismod php5.6 sudo a2enmod php7.0 sudo service apache2 restart Step for PHP 7.0 to PHP 5.6: sudo a2dismod php7.0 sudo a2enmod php5.6 sudo service apache2 restart