Páginas

Tuesday, December 19, 2017

Install MongoDB Community Edition in Debian 9

We must install libssl1.0.0 which is not inside Debian 9's official repositories.

Let's execute this commands:

$ wget http://security.debian.org/debian-security/pool/updates/main/o/openssl/libssl1.0.0_1.0.1t-1+deb7u3_amd64.deb
$ sudo dpkg -i libssl1.0.0_1.0.1t-1+deb7u3_amd64.deb
$ sudo apt install dirmngr
$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5
$ sudo su
# echo "deb http://repo.mongodb.org/apt/debian jessie/mongodb-org/3.6 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.6.list
# exit
$ sudo apt update
$ sudo apt install -y mongodb*

Done!

Thursday, December 14, 2017

ERROR when trying to install the polymer-cli

If you try to install the polymer-cli:

$ sudo npm install -g polymer-cli

...and you get the following error:

Error: EACCES: permission denied, mkdir '/usr/lib/node_modules/polymer-cli/node_modules/wd/build'

You can solve it by running the command with the --unsafe-perm parameter:

$ sudo npm install -g polymer-cli --unsafe-perm