After running: npm install --global --production windows-build-tools
I try to run the following command: node-gyp --python C:\Python27\python27 and then get the following message:
'node-gyp' is not recognized as an internal or external command,
operable program or batch file.
Hello @dauledk,
You have two ways to trigger node-gyp:
binding.gyp file) you can just run npm inode-gyp you'll need to install it as a global module with npm i -g node-gypnote: https://github.com/nodejs/node-gyp/issues/1195#issuecomment-300888406 - npm has it's own version locked copy of the node-gyp module.
note2: if your python is in your path you don't need the --python C:\Python27\python27 flag
Most helpful comment
Hello @dauledk,
You have two ways to trigger
node-gyp:binding.gypfile) you can just runnpm inode-gypyou'll need to install it as a global module withnpm i -g node-gypnote: https://github.com/nodejs/node-gyp/issues/1195#issuecomment-300888406 -
npmhas it's own version locked copy of thenode-gypmodule.note2: if your
pythonis in your path you don't need the--python C:\Python27\python27flag