Node-gyp: installing node-gyp on windows

Created on 29 Aug 2016  路  5Comments  路  Source: nodejs/node-gyp

I see everyone is having issues with installing this package on windows. I experienced it myself, I tried many solution that were available online and none of them worked.

If you are on Windows 10, there is no need for you to install Microsoft's build tools. All you have to do is to install the package using 'Bash on Ubuntu on Windows' - the installation is flawless and fast.

Is this method worth making a pull request?

Most helpful comment

Thanks @refack 馃憤
It works well for me.

All 5 comments

I believe your suggestion is to use the Linux subsystem? That's not really a solution for people that need to interface with Windows natively.

This helps unless you are on Windows 7: https://github.com/nodejs/node-gyp/wiki/Updating-npm's-bundled-node-gyp

What to do if one is on windows 7? No idea.

I am using python 3.5 as default.
but node-gyp require python 2.* only,
Any idea?

Removing the dependency on python 2.* is a work in progress #193
For now you'll need to install python2.* as stated in the README
If node-gyp still can't find python2 you can set an environment variable npm_config_python before you run npm i:

> set npm_config_python=[path to your python2 binary]
> npm i

Thanks @refack 馃憤
It works well for me.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lopezdp picture lopezdp  路  3Comments

Flimm picture Flimm  路  3Comments

chen4393 picture chen4393  路  3Comments

zghbyslzf picture zghbyslzf  路  3Comments

alexeyvo picture alexeyvo  路  3Comments