Posts

Showing posts with the label node

"make requirements" error when trying to install phantomjs

When the `make requirements` command trying to install phantomjs, it shows this error: ... info lifecycle phantomjs@1.9.20~install: Failed to exec install script ... verbose stack Error: phantomjs@1.9.20 install: `node install.js` verbose stack Exit status 1 ... And this solves that problem in my Ubuntu 16.04: sudo apt install nodejs-legacy

Get the second last child of an element in CSS

In order to query the second last child of a HTML element in CSS, you can just simply use this: .my-menu:nth-last-child(2) assuming .my-menu is the class name of the parent node.