Visual Studio 2017 npm error – CategoryInfo not specified

While trying to install and test the npm package node-adwords, I stumbled upon an error stating an error with CategoryInfo not being specified.

The errors given by npm included e.g. gyp error, and reading about it from random internet sources, the problem seemed to point to compiler settings. I updated node to the latest version, which did not resolve the issue.

The next attempt was to modify my Visual Studio 2017 Professional installation, and specifically the Node.js options:

nodejs-reintall-vs2017

I did not have the VC++ 2017 v141 toolset installed, so I ticked it along with Visual Studio C++ core features (I don’t think it is necessary) and started the installation.

Continue reading

Advertisements