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

[SOLVED] npm install error

Open Nomia opened this issue 8 years ago • 16 comments

UPDATE: problem solved

For those who has the same install error, try npm install memwatch-next

ORIGINAL ERROR

Hi, I love the design of your work, but just cannot install :<

$ npm install memwatch --save-dev |

[email protected] install /Users/Vincent/Desktop/wxbot-node/node_modules/memwatch node-gyp rebuild

gyp: /Users/Vincent/.node-gyp/4.2.3/common.gypi not found (cwd: /Users/Vincent/Desktop/wxbot-node/node_modules/memwatch) while reading includes of binding.gyp while trying to load binding.gyp gyp ERR! configure error gyp ERR! stack Error: gyp failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/cnpm/node_modules/pangyp/lib/configure.js:345:16) gyp ERR! stack at emitTwo (events.js:87:13) gyp ERR! stack at ChildProcess.emit (events.js:172:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12) gyp ERR! System Darwin 16.0.0 gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/cnpm/node_modules/pangyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /Users/Vincent/Desktop/wxbot-node/node_modules/memwatch gyp ERR! node -v v4.2.3 gyp ERR! pangyp -v v2.1.0 gyp ERR! not ok npm ERR! Darwin 16.0.0 npm ERR! argv "/usr/local/bin/node" "/usr/local/lib/node_modules/cnpm/node_modules/.bin/npm" "--userconfig=/Users/Vincent/.cnpmrc" "--disturl=https://npm.taobao.org/mirrors/node" "--cache=/Users/Vincent/.cnpm" "--registry=https://registry.npm.taobao.org" "--node-gyp=/usr/local/lib/node_modules/cnpm/node_modules/pangyp/bin/node-gyp.js" "install" "memwatch" "--save-dev" npm ERR! node v4.2.3 npm ERR! npm v2.13.5 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 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 npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! /Users/Vincent/Desktop/wxbot-node/npm-debug.log

Here is the log:

0 info it worked if it ends with ok 1 verbose cli '--node-gyp=/usr/local/lib/node_modules/cnpm/node_modules/pangyp/bin/node-gyp.js', 1 verbose cli 'install', 1 verbose cli 'memwatch', 1 verbose cli '--save-dev' ] 2 info using [email protected] 3 info using [email protected] 4 verbose install initial load of /Users/Vincent/Desktop/wxbot-node/package.json 5 verbose installManyTop reading scoped package data from /Users/Vincent/Desktop/wxbot-node/node_modules/babel-eslint/package.json 6 verbose installManyTop reading scoped package data from /Users/Vincent/Desktop/wxbot-node/node_modules/electron/package.json 7 verbose installManyTop reading scoped package data from /Users/Vincent/Desktop/wxbot-node/node_modules/electron-packager/package.json 8 verbose installManyTop reading scoped package data from /Users/Vincent/Desktop/wxbot-node/node_modules/electron-prebuilt/package.json 9 verbose installManyTop reading scoped package data from /Users/Vincent/Desktop/wxbot-node/node_modules/eslint/package.json 10 verbose installManyTop reading scoped package data from /Users/Vincent/Desktop/wxbot-node/node_modules/eslint-config-airbnb/package.json 11 verbose installManyTop reading scoped package data from /Users/Vincent/Desktop/wxbot-node/node_modules/eslint-plugin-import/package.json 12 verbose installManyTop reading scoped package data from /Users/Vincent/Desktop/wxbot-node/node_modules/eslint-plugin-jsx-a11y/package.json 13 verbose installManyTop reading scoped package data from /Users/Vincent/Desktop/wxbot-node/node_modules/eslint-plugin-react/package.json 14 verbose installManyTop reading scoped package data from /Users/Vincent/Desktop/wxbot-node/node_modules/jquery/package.json 15 verbose installManyTop reading scoped package data from /Users/Vincent/Desktop/wxbot-node/node_modules/jsdom/package.json 16 verbose installManyTop reading scoped package data from /Users/Vincent/Desktop/wxbot-node/node_modules/md5/package.json 17 verbose installManyTop reading scoped package data from /Users/Vincent/Desktop/wxbot-node/node_modules/moment/package.json 18 verbose installManyTop reading scoped package data from /Users/Vincent/Desktop/wxbot-node/node_modules/pinyin/package.json 19 verbose readDependencies loading dependencies from /Users/Vincent/Desktop/wxbot-node/package.json 20 silly cache add args [ 'memwatch', null ] 21 verbose cache add spec memwatch 22 silly cache add parsed spec Result { 22 silly cache add raw: 'memwatch', 22 silly cache add scope: null, 22 silly cache add name: 'memwatch', 22 silly cache add rawSpec: '', 22 silly cache add spec: '', 22 silly cache add type: 'range' } 23 silly addNamed memwatch@ 24 verbose addNamed "" is a valid semver range for memwatch 25 silly addNameRange { name: 'memwatch', range: '', hasData: false } 26 silly mapToRegistry name memwatch 27 silly mapToRegistry using default registry 28 silly mapToRegistry registry https://registry.npm.taobao.org/ 29 silly mapToRegistry uri https://registry.npm.taobao.org/memwatch 30 verbose addNameRange registry:https://registry.npm.taobao.org/memwatch not in flight; fetching 31 verbose request uri https://registry.npm.taobao.org/memwatch 32 verbose request no auth needed 33 info attempt registry request try #1 at 11:12:05 AM 34 verbose request id c6ef7f183f5b68e8 35 http request GET https://registry.npm.taobao.org/memwatch 36 http 200 https://registry.npm.taobao.org/memwatch 37 silly get cb [ 200, 37 silly get { date: 'Thu, 20 Oct 2016 03:12:27 GMT', 37 silly get 'content-type': 'application/json; charset=utf-8', 37 silly get 'content-length': '15896', 37 silly get connection: 'keep-alive', 37 silly get 'x-current-requests': '1', 37 silly get etag: '"3e18-EFKuKdOQBRC+ImSr8doidw"', 37 silly get 'x-readtime': '14' } ] 38 verbose get saving memwatch to /Users/Vincent/.cnpm/registry.npm.taobao.org/memwatch/.cache.json 39 silly addNameRange number 2 { name: 'memwatch', range: '_', hasData: true } 40 silly addNameRange versions [ 'memwatch', 40 silly addNameRange [ '0.2.2', 40 silly addNameRange '0.2.1', 40 silly addNameRange '0.2.0', 40 silly addNameRange '0.1.5', 40 silly addNameRange '0.1.4', 40 silly addNameRange '0.1.3', 40 silly addNameRange '0.1.2', 40 silly addNameRange '0.1.1', 40 silly addNameRange '0.1.0' ] ] 41 silly addNamed [email protected] 42 verbose addNamed "0.2.2" is a plain semver version for memwatch 43 silly mapToRegistry name memwatch 44 silly mapToRegistry using default registry 45 silly mapToRegistry registry https://registry.npm.taobao.org/ 46 silly mapToRegistry uri https://registry.npm.taobao.org/memwatch 47 verbose addRemoteTarball https://registry.npm.taobao.org/memwatch/download/memwatch-0.2.2.tgz not in flight; adding 48 verbose addRemoteTarball [ 'https://registry.npm.taobao.org/memwatch/download/memwatch-0.2.2.tgz', 48 verbose addRemoteTarball '779e8cd982532b6221b6ed1c1269098bee16f92c' ] 49 info retry fetch attempt 1 at 11:12:28 AM 50 info attempt registry request try #1 at 11:12:28 AM 51 http fetch GET https://registry.npm.taobao.org/memwatch/download/memwatch-0.2.2.tgz 52 http fetch 200 https://registry.npm.taobao.org/memwatch/download/memwatch-0.2.2.tgz 53 silly fetchAndShaCheck shasum 779e8cd982532b6221b6ed1c1269098bee16f92c 54 verbose addTmpTarball /var/folders/xf/pd1xlwbs0dx2zns9r3cpw6sm0000gn/T/npm-14498-ac4651cb/registry.npm.taobao.org/memwatch/download/memwatch-0.2.2.tgz not in flight; adding 55 verbose addTmpTarball already have metadata; skipping unpack for [email protected] 56 silly cache afterAdd [email protected] 57 verbose afterAdd /Users/Vincent/.cnpm/memwatch/0.2.2/package/package.json not in flight; writing 58 verbose afterAdd /Users/Vincent/.cnpm/memwatch/0.2.2/package/package.json written 59 silly install resolved [ { name: 'memwatch', 59 silly install resolved description: 'Keep an eye on your memory usage, and discover and isolate leaks.', 59 silly install resolved version: '0.2.2', 59 silly install resolved author: { name: 'Lloyd Hilaiel', url: 'http://lloyd.io' }, 59 silly install resolved engines: { node: '>= 0.6.0' }, 59 silly install resolved repository: 59 silly install resolved { type: 'git', 59 silly install resolved url: 'https://github.com/lloyd/node-memwatch.git' }, 59 silly install resolved main: 'include.js', 59 silly install resolved licenses: [ [Object] ], 59 silly install resolved bugs: { url: 'https://github.com/lloyd/node-memwatch/issues' }, 59 silly install resolved scripts: { install: 'node-gyp rebuild', test: 'mocha tests' }, 59 silly install resolved devDependencies: { mocha: '1.2.2', should: '0.6.3', 'node-gyp': '0.5.7' }, 59 silly install resolved contributors: [ [Object], [Object], [Object] ], 59 silly install resolved readmeFilename: 'README.md', 59 silly install resolved _id: '[email protected]', 59 silly install resolved dist: 59 silly install resolved { shasum: '779e8cd982532b6221b6ed1c1269098bee16f92c', 59 silly install resolved size: 11266, 59 silly install resolved noattachment: false, 59 silly install resolved tarball: 'http://registry.npm.taobao.org/memwatch/download/memwatch-0.2.2.tgz' }, 59 silly install resolved from: 'memwatch@', 59 silly install resolved _npmVersion: '1.2.14', 59 silly install resolved _npmUser: { name: 'lloyd', email: '[email protected]' }, 59 silly install resolved maintainers: [ [Object] ], 59 silly install resolved directories: {}, 59 silly install resolved publish_time: 1363215719219, 59 silly install resolved _cnpm_publish_time: 1363215719219, 59 silly install resolved _shasum: '779e8cd982532b6221b6ed1c1269098bee16f92c', 59 silly install resolved _resolved: 'https://registry.npm.taobao.org/memwatch/download/memwatch-0.2.2.tgz' } ] 60 info install [email protected] into /Users/Vincent/Desktop/wxbot-node 61 info installOne [email protected] 62 verbose installOne of memwatch to /Users/Vincent/Desktop/wxbot-node not in flight; installing 63 verbose lock using /Users/Vincent/.cnpm/_locks/memwatch-b601871eb72ec4dc.lock for /Users/Vincent/Desktop/wxbot-node/node_modules/memwatch 64 silly install write writing memwatch 0.2.2 to /Users/Vincent/Desktop/wxbot-node/node_modules/memwatch 65 verbose unbuild node_modules/memwatch 66 silly gentlyRm /Users/Vincent/Desktop/wxbot-node/node_modules/memwatch is being purged from base /Users/Vincent/Desktop/wxbot-node 67 verbose gentlyRm don't care about contents; nuking /Users/Vincent/Desktop/wxbot-node/node_modules/memwatch 68 verbose tar unpack /Users/Vincent/.cnpm/memwatch/0.2.2/package.tgz 69 verbose tar unpacking to /Users/Vincent/Desktop/wxbot-node/node_modules/memwatch 70 silly gentlyRm /Users/Vincent/Desktop/wxbot-node/node_modules/memwatch is being purged 71 verbose gentlyRm don't care about contents; nuking /Users/Vincent/Desktop/wxbot-node/node_modules/memwatch 72 silly gunzTarPerm modes [ '755', '644' ] 73 silly gunzTarPerm extractEntry package.json 74 silly gunzTarPerm extractEntry .npmignore 75 silly gunzTarPerm extractEntry README.md 76 silly gunzTarPerm extractEntry tests.js 77 silly gunzTarPerm extractEntry foo.js 78 silly gunzTarPerm extractEntry include.js 79 silly gunzTarPerm extractEntry .travis.yml 80 silly gunzTarPerm extractEntry ChangeLog 81 silly gunzTarPerm extractEntry #wscript# 82 silly gunzTarPerm extractEntry binding.gyp 83 silly gunzTarPerm extractEntry src/heapdiff.cc 84 silly gunzTarPerm extractEntry src/heapdiff.hh 85 silly gunzTarPerm extractEntry src/init.cc 86 silly gunzTarPerm extractEntry src/memwatch.cc 87 silly gunzTarPerm extractEntry src/memwatch.hh 88 silly gunzTarPerm extractEntry src/platformcompat.hh 89 silly gunzTarPerm extractEntry src/util.cc 90 silly gunzTarPerm extractEntry src/util.hh 91 silly gunzTarPerm extractEntry examples/basic_heapdiff.js 92 silly gunzTarPerm extractEntry examples/do_nothing_server.js 93 silly gunzTarPerm extractEntry examples/slightly_leaky.js 94 verbose write writing to /Users/Vincent/Desktop/wxbot-node/node_modules/memwatch/package.json 95 info preinstall [email protected] 96 verbose readDependencies loading dependencies from /Users/Vincent/Desktop/wxbot-node/node_modules/memwatch/package.json 97 verbose readDependencies loading dependencies from /Users/Vincent/Desktop/wxbot-node/node_modules/memwatch/package.json 98 silly install resolved [] 99 verbose about to build /Users/Vincent/Desktop/wxbot-node/node_modules/memwatch 100 info build /Users/Vincent/Desktop/wxbot-node/node_modules/memwatch 101 info linkStuff [email protected] 102 silly linkStuff [email protected] has /Users/Vincent/Desktop/wxbot-node/node_modules as its parent node_modules 103 verbose linkBins [email protected] 104 verbose linkMans [email protected] 105 verbose rebuildBundles [email protected] 106 info install [email protected] 107 verbose unsafe-perm in lifecycle true 108 info [email protected] Failed to exec install script 109 verbose unlock done using /Users/Vincent/.cnpm/_locks/memwatch-b601871eb72ec4dc.lock for /Users/Vincent/Desktop/wxbot-node/node_modules/memwatch 110 verbose stack Error: [email protected] install: node-gyp rebuild 110 verbose stack Exit status 1 110 verbose stack at EventEmitter. (/usr/local/lib/node_modules/cnpm/node_modules/npm/lib/utils/lifecycle.js:214:16) 110 verbose stack at emitTwo (events.js:87:13) 110 verbose stack at EventEmitter.emit (events.js:172:7) 110 verbose stack at ChildProcess. (/usr/local/lib/node_modules/cnpm/node_modules/npm/lib/utils/spawn.js:24:14) 110 verbose stack at emitTwo (events.js:87:13) 110 verbose stack at ChildProcess.emit (events.js:172:7) 110 verbose stack at maybeClose (internal/child_process.js:818:16) 110 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5) 111 verbose pkgid [email protected] 112 verbose cwd /Users/Vincent/Desktop/wxbot-node 113 error Darwin 16.0.0 114 error argv "/usr/local/bin/node" "/usr/local/lib/node_modules/cnpm/node_modules/.bin/npm" "--userconfig=/Users/Vincent/.cnpmrc" "--disturl=https://npm.taobao.org/mirrors/node" "--cache=/Users/Vincent/.cnpm" "--registry=https://registry.npm.taobao.org" "--node-gyp=/usr/local/lib/node_modules/cnpm/node_modules/pangyp/bin/node-gyp.js" "install" "memwatch" "--save-dev" 115 error node v4.2.3 116 error npm v2.13.5 117 error code ELIFECYCLE 118 error [email protected] install: node-gyp rebuild 118 error Exit status 1 119 error Failed at the [email protected] install script 'node-gyp rebuild'. 119 error This is most likely a problem with the memwatch package, 119 error not with npm itself. 119 error Tell the author that this fails on your system: 119 error node-gyp rebuild 119 error You can get their info via: 119 error npm owner ls memwatch 119 error There is likely additional logging output above. 120 verbose exit [ 1, true ] 121 verbose unbuild node_modules/memwatch 122 info preuninstall [email protected] 123 info uninstall [email protected] 124 verbose unbuild rmStuff [email protected] from /Users/Vincent/Desktop/wxbot-node/node_modules 125 info postuninstall [email protected] 126 silly gentlyRm /Users/Vincent/Desktop/wxbot-node/node_modules/memwatch is being purged from base /Users/Vincent/Desktop/wxbot-node 127 verbose gentlyRm don't care about contents; nuking /Users/Vincent/Desktop/wxbot-node/node_modules/memwatch 128 silly vacuum-fs purging /Users/Vincent/Desktop/wxbot-node/node_modules/memwatch 129 silly vacuum-fs quitting because other entries in /Users/Vincent/Desktop/wxbot-node/node_modules

Nomia avatar Oct 20 '16 03:10 Nomia

Thank you for coming back to update!

ksami avatar Nov 01 '16 06:11 ksami

gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23) gyp ERR! stack at emitTwo (events.js:106:13) gyp ERR! stack at ChildProcess.emit (events.js:191:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12) gyp ERR! System Linux 2.6.32-642.13.1.el6.x86_64 gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1 npm ERR! code ELIFECYCLE npm ERR! errno 1 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! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the memwatch 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 information on how to open an issue for this project with: npm ERR! npm bugs memwatch npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls memwatch npm ERR! There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:

malipraful avatar Apr 18 '17 12:04 malipraful

What was the solution here ???

piampri avatar Nov 11 '18 13:11 piampri

image @piampri

Nomia avatar Nov 14 '18 01:11 Nomia

memwatch-next also dead

glensc avatar Sep 08 '20 10:09 glensc

memwatch-next also dead

yes

wolf-yuan-6115 avatar Jan 23 '21 09:01 wolf-yuan-6115

image @piampri

Hey... memwatch-next is dead too...

wolf-yuan-6115 avatar Jan 24 '21 11:01 wolf-yuan-6115

the same error, neither memwatch nor memwatch-next can work

minggangLu avatar Feb 22 '21 03:02 minggangLu

Have the same issue.

missak-boyajian avatar Feb 24 '21 14:02 missak-boyajian

same here

HiptJo avatar Nov 03 '21 08:11 HiptJo

Same here

$ npm i memwatch-next --save-dev

Doesn't work

nikakhachi avatar Feb 20 '22 10:02 nikakhachi

And me too.

Camuvingian avatar Sep 21 '22 13:09 Camuvingian

Same here. Windows 10 build errors on https://github.com/lloyd/node-memwatch and https://github.com/airbnb/node-memwatch both

sts-lauri avatar Oct 04 '22 02:10 sts-lauri

And me too.

BBC6BAE9 avatar Jan 18 '23 12:01 BBC6BAE9

yuck. now how will I ever finger out my memory leeks 🥬 ?

Finally I wrote a simple FSM by myself,I hope this will help you.

Russell @.***> 于2023年5月26日周五 06:14写道:

yuck. now how will I ever finger out my memory leeks 🥬 ?

— Reply to this email directly, view it on GitHub https://github.com/lloyd/node-memwatch/issues/79#issuecomment-1563573429, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE3JB7T4RCTL7KSPJQAMWG3XH7KVPANCNFSM4CTOW7XQ . You are receiving this because you commented.Message ID: @.***>

BBC6BAE9 avatar May 26 '23 14:05 BBC6BAE9