Is there node-waf for Node.js on windows?

I am trying to install the png module from Node.js using the following command:

npm install png

however, I get the following error:

node-waf configure build

'node-waf' is not recognized as an internal or external command

My question is: is there node-waf for windows?

+4
source share
1 answer

As with Node 0.8, the waf build system has been removed and replaced with a cross-platform node-gyp .

To run gyp on Windows, you need Python 2.7 and MS Visual C ++ (and to build x64, Win 7 x64 SDKs ).

Of course, gyp will not help you install the right package (since it uses waf). As a rule, you need to get the project installer to switch to a new build system or develop it and fix it yourself (this is not that difficult ).

However, it seems that the author of node -png actually added gyp bindings to the GitHub repo , but doesn’t have moved these changes to npm (maybe they still do not work). You can try to clone the repo and see if you can build it.

+6
source

Source: https://habr.com/ru/post/1438434/


All Articles