Category Archives: Linux


To give you a little context: I ran the following command for installing Gulp (a node package module) globally: npm install -g gulp

The installation succeed but when I ran this gulp command in the command line I got a "gulp: command not found" error. It appeared that it installed “Gulp” in my local folder that is /Users/YOURUSERNAME/node_modules and not in the global NPM folder.

You can check this by running this command: npm root or npm root -g, which was returning my personal directory /Users/YOURUSERNAME/node_modules and not the expected /usr/local/lib/node_modules.

After some trial & error, I finally found the solution. You have to change the “npm config prefix” like so: npm config set prefix /usr/local

Then when I re-ran npm root -g, I got the correct root folder: /usr/local/lib/node_modules

When I reinstalled Gulp globally (with the -g param) it finally worked and appeared that it was now correctly installed in the global NPM folder. Yeay!



No se encontró la extensión mcrypt.

Al instalar LAMP salio que no se encontró la exención MCRYPT aquí la solución útil y sencilla sin tocar nada de los archivos de configuración de  PHP:

 DOS | 
 copy code |

  1. // instalamos el php5-mcrypt
  2. sudo apt-get install php5-mcrypt
  3. // crea un enlace simbolico  de la extencion a los modulos de PHP
  4. sudo ln -s /etc/php5/conf.d/mcrypt.ini /etc/php5/mods-available
  5. // damos de alta o registraremos mcrypt
  6. sudo php5enmod mcrypt
  7. // reiniciamos el server de Apache
  8. sudo service apache2 restart