The problem is described in the topic.
Below is a screenshot of this error:
Here is the solution, you just need to change the permissions:
sudo chown -R $USER /usr/local/lib/node_modules
After that npm install -g jshint and any npm install works fine.
Thanks for help. It works!