npm ERR! weird error 1

Do you get the fol­low­ing error while installing a node package?

npm ERR! weird error 1

Try remov­ing the phantom.js from your machine using the fol­low­ing command.

sudo rm -rf T/phantomjs/

And then try installing the pack­age again. Hope­fully, it resolves the issue. If not then more infor­ma­tion can be found at the following.

Github Issue 1
Github Issue 2

You may also like...