Try downloading the windows-build-tools package.Īccording to the node-gyp documentation, this step should be the end-all-be-all solution to fixing node-gyp problems. Make sure that you’re always working in an elevated terminal (with administrator privileges) and that you restart your console whenever a download is complete. As we begin our journey into getting node-gyp up and running, here’s an important note for all of the steps that follow. If you run this and still get the error, I have bad news: You’re in for a bit of a ride.
![cannot install microsoft visual studio 2017 in windows 10 cannot install microsoft visual studio 2017 in windows 10](https://jp.winxmac.com/sfimages/screenshots-win/developer-tools/visual-studio-community-screenshot-03.png)
Try running npm install –no-optional to install only the required dependencies. If you’re lucky, the dependency that requires node-gyp will be optional, and you can skip the entire process required to get it working. Try running npm install with the -no-optional flag. This guide is meant to help solve the issues that can arise when installing a package that requires node-gyp.
#CANNOT INSTALL MICROSOFT VISUAL STUDIO 2017 IN WINDOWS 10 FULL#
The Windows environment makes getting node-gyp to work a less-than-stellar developer experience, full of multiple pitfalls and many ways for things to go wrong.
![cannot install microsoft visual studio 2017 in windows 10 cannot install microsoft visual studio 2017 in windows 10](https://user-images.githubusercontent.com/19614725/30429105-41e6c9d0-9924-11e7-99db-442c38545f6e.png)
Unfortunately, this is not the case with Windows, as is evidenced by this thread from 2015.
![cannot install microsoft visual studio 2017 in windows 10 cannot install microsoft visual studio 2017 in windows 10](https://ceruleanproject.com/pictures/how-do-i-manually-install-visual-c-3.png)
On most systems, this isn’t an issue, and installing node-gyp with the rest of your packages works as expected. It has widespread use and is included as a dependency in many NPM packages. Node-gyp is a tool that enables the compilation of native add-on modules for Node in multiple platforms.