node-memwatch icon indicating copy to clipboard operation
node-memwatch copied to clipboard

npm install memwatch-next fails

Open reynot opened this issue 9 years ago • 3 comments

Hi

When I tried to install memwatch-next on node v0.12.4 it fails with the following debug output. It is trying to rebuild the project. Is this expected? Not very experienced in this, should it not install without requiring a local build.

When I installed Python and node-gyp, it then built the project using VS2010 I happened to have installed but came up with a large amount of warnings. When I tested it, I did not get the stats or leak callbacks when running the example.

Apologies if this is a daft question but it looks a really useful module.

Thanks

Tim

C:\Rabin\trunk\sw\mhub\node\node_modules\memwatch-next>if not defined npm_config _node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin... .\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (rebuild) gyp ERR! configure error gyp ERR! stack Error: Can't find Python executable "python", you can set the PYT HON env variable. gyp ERR! stack at failNoPython (C:\Program Files\nodejs\node_modules\npm\nod e_modules\node-gyp\lib\configure.js:103:14) gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node -gyp\lib\configure.js:64:11 gyp ERR! stack at FSReqWrap.oncomplete (evalmachine.:95:15) gyp ERR! System Windows_NT 6.1.7601 gyp ERR! command "node" "C:\Program Files\nodejs\node_modules\npm\node_modu les\node-gyp\bin\node-gyp.js" "rebuild" gyp ERR! cwd C:\Rabin\trunk\sw\mhub\node\node_modules\memwatch-next gyp ERR! node -v v0.12.4 gyp ERR! node-gyp -v v1.0.3 gyp ERR! not ok npm ERR! Windows_NT 6.1.7601 npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs \node_modules\npm\bin\npm-cli.js" "install" "memwatch-next" npm ERR! node v0.12.4 npm ERR! npm v2.10.1 npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'. npm ERR! This is most likely a problem with the memwatch-next package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-gyp rebuild npm ERR! You can get their info via: npm ERR! npm owner ls memwatch-next npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! C:\Rabin\trunk\sw\mhub\node\npm-debug.log

reynot avatar Aug 06 '15 09:08 reynot

Does not support on node.js v.0.12 #62

EricSmekens avatar Aug 11 '15 06:08 EricSmekens

hi, if you're using my fork memwatch-next... node.js 0.12 is supported...

the error you're experiencing is related to system setup, python... on windows npm is painful sometime...

marcominetti avatar Oct 13 '15 07:10 marcominetti

Try reinstalling python and make sure its in your PATH. Then try npm install memwatch again.

wonderdogone avatar Nov 10 '15 18:11 wonderdogone