Troubles with NPM and node-gyp in Windows

不羁的心 提交于 2019-11-29 08:21:34

Write those code in admin command prompt:

npm install --global --production windows-build-tools

And then hit enter.

You need Microsoft Visual C++ build tools, which are packaged with Visual Studio. However, they are now also available as a standalone download. After installing these tools and restarting your computer, you should be able to install packages that use node-gyp under the hood.

Windows open PowerShell in administrative tool and run this command

npm install --global --production windows-build-tools 

I created an issue on github for node-gyp. And also here is a disscussion of a similar problem. Probaly it not helped me, but maybe it can be useful for someone else.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!