想安装 easy-monitor 来查内存泄露,但是发现安装不了。
发布于 10 天前 作者 Aaron009 222 次浏览 来自 问答

我百度以下方法,都不行。 http://www.cnblogs.com/haochuang/p/5688093.html https://www.jianshu.com/p/24ccd5f3f582 https://youcanping.cn/2017/12/17/node-gyp-error/

环境: using npm@6.4.1 using node@v10.14.1 Windows 7 64位

cmd 截图如下 image.png

install.log

0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli   'C:\\Users\\Client\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'install',
1 verbose cli   'easy-monitor' ]
2 info using npm@6.4.1
3 info using node@v10.14.1
4 verbose config Skipping project config: C:\Users\Client/.npmrc. (matches userconfig)
5 verbose npm-session 032a3c918d8903b0
6 silly install loadCurrentTree
7 silly install readLocalPackageData
8 http fetch GET 304 https://registry.npm.taobao.org/easy-monitor 186ms (from cache)
9 silly pacote tag manifest for easy-monitor@latest fetched in 217ms
10 timing stage:loadCurrentTree Completed in 832ms
11 silly install loadIdealTree
12 silly install cloneCurrentTreeToIdealTree
13 timing stage:loadIdealTree:cloneCurrentTree Completed in 2ms
14 silly install loadShrinkwrap
15 timing stage:loadIdealTree:loadShrinkwrap Completed in 142ms
16 silly install loadAllDepsIntoIdealTree
17 silly resolveWithNewModule easy-monitor@2.2.6-rc.0 checking installable status
18 http fetch GET 304 https://registry.npm.taobao.org/v8-profiler-node8 65ms (from cache)
19 silly pacote range manifest for v8-profiler-node8@^6.0.1 fetched in 69ms
20 silly resolveWithNewModule v8-profiler-node8@6.0.1 checking installable status
21 http fetch GET 304 https://registry.npm.taobao.org/nan 50ms (from cache)
22 silly pacote range manifest for nan@^2.5.1 fetched in 52ms
23 silly resolveWithNewModule nan@2.11.1 checking installable status
24 http fetch GET 304 https://registry.npm.taobao.org/node-pre-gyp 74ms (from cache)
25 silly pacote range manifest for node-pre-gyp@^0.11.0 fetched in 76ms
26 silly resolveWithNewModule node-pre-gyp@0.11.0 checking installable status
27 timing stage:loadIdealTree:loadAllDepsIntoIdealTree Completed in 302ms
28 timing stage:loadIdealTree Completed in 506ms
29 silly currentTree Client
29 silly currentTree +-- abbrev@1.1.1
29 silly currentTree +-- accepts@1.3.5
29 silly currentTree +-- ansi-regex@2.1.1
29 silly currentTree +-- aproba@1.2.0
29 silly currentTree +-- are-we-there-yet@1.1.5
29 silly currentTree +-- array-flatten@1.1.1
29 silly currentTree +-- balanced-match@1.0.0
29 silly currentTree +-- basic-auth@1.1.0
29 silly currentTree +-- body-parser@1.18.3
29 silly currentTree | +-- http-errors@1.6.3
29 silly currentTree | +-- iconv-lite@0.4.23
29 silly currentTree | `-- qs@6.5.2
29 silly currentTree +-- brace-expansion@1.1.11
29 silly currentTree +-- bytes@3.0.0
29 silly currentTree +-- chownr@1.1.1
29 silly currentTree +-- co@4.6.0
29 silly currentTree +-- code-point-at@1.1.0
29 silly currentTree +-- colors@1.3.2
29 silly currentTree +-- compressible@2.0.15
29 silly currentTree +-- compression@1.7.3
29 silly currentTree +-- concat-map@0.0.1
29 silly currentTree +-- console-control-strings@1.1.0
29 silly currentTree +-- content-disposition@0.5.2
29 silly currentTree +-- content-type@1.0.4
29 silly currentTree +-- cookie-signature@1.1.0
29 silly currentTree +-- cookie@0.3.1
29 silly currentTree +-- core-util-is@1.0.2
29 silly currentTree +-- debug@2.6.9
29 silly currentTree +-- deep-extend@0.6.0
29 silly currentTree +-- delegates@1.0.0
29 silly currentTree +-- depd@1.1.2
29 silly currentTree +-- destroy@1.0.4
29 silly currentTree +-- detect-libc@1.0.3
29 silly currentTree +-- ee-first@1.1.1
29 silly currentTree +-- ejs@2.6.1
29 silly currentTree +-- encodeurl@1.0.2
29 silly currentTree +-- escape-html@1.0.3
29 silly currentTree +-- etag@1.8.1
29 silly currentTree +-- express@4.16.4
29 silly currentTree | +-- cookie-signature@1.0.6
29 silly currentTree | +-- qs@6.5.2
29 silly currentTree | `-- statuses@1.4.0
29 silly currentTree +-- finalhandler@1.1.1
29 silly currentTree | `-- statuses@1.4.0
29 silly currentTree +-- forwarded@0.1.2
29 silly currentTree +-- fresh@0.5.2
29 silly currentTree +-- fs-minipass@1.2.5
29 silly currentTree +-- fs.realpath@1.0.0
29 silly currentTree +-- gauge@2.7.4
29 silly currentTree +-- glob@7.1.3
29 silly currentTree +-- has-unicode@2.0.1
29 silly currentTree +-- http-errors@1.7.1
29 silly currentTree +-- iconv-lite@0.4.24
29 silly currentTree +-- ignore-walk@3.0.1
29 silly currentTree +-- inflight@1.0.6
29 silly currentTree +-- inherits@2.0.3
29 silly currentTree +-- ini@1.3.5
29 silly currentTree +-- ipaddr.js@1.8.1
29 silly currentTree +-- is-fullwidth-code-point@1.0.0
29 silly currentTree +-- isarray@1.0.0
29 silly currentTree +-- jsonparse@1.3.1
29 silly currentTree +-- JSONStream@1.3.5
29 silly currentTree +-- lodash@4.17.11
29 silly currentTree +-- media-typer@0.3.0
29 silly currentTree +-- merge-descriptors@1.0.1
29 silly currentTree +-- methods@1.1.2
29 silly currentTree +-- mime-db@1.37.0
29 silly currentTree +-- mime-types@2.1.21
29 silly currentTree +-- mime@1.6.0
29 silly currentTree +-- minimatch@3.0.4
29 silly currentTree +-- minimist@0.0.8
29 silly currentTree +-- minipass@2.3.5
29 silly currentTree +-- minizlib@1.1.1
29 silly currentTree +-- mkdirp@0.5.1
29 silly currentTree +-- ms@2.0.0
29 silly currentTree +-- needle@2.2.4
29 silly currentTree +-- negotiator@0.6.1
29 silly currentTree +-- node-pre-gyp@0.12.0
29 silly currentTree +-- nopt@4.0.1
29 silly currentTree +-- npm-bundled@1.0.5
29 silly currentTree +-- npm-packlist@1.1.12
29 silly currentTree +-- npmlog@4.1.2
29 silly currentTree +-- number-is-nan@1.0.1
29 silly currentTree +-- object-assign@4.1.1
29 silly currentTree +-- on-finished@2.3.0
29 silly currentTree +-- on-headers@1.0.1
29 silly currentTree +-- once@1.4.0
29 silly currentTree +-- os-homedir@1.0.2
29 silly currentTree +-- os-tmpdir@1.0.2
29 silly currentTree +-- osenv@0.1.5
29 silly currentTree +-- parseurl@1.3.2
29 silly currentTree +-- path-is-absolute@1.0.1
29 silly currentTree +-- path-to-regexp@0.1.7
29 silly currentTree +-- pretty-bytes@4.0.2
29 silly currentTree +-- process-nextick-args@2.0.0
29 silly currentTree +-- proxy-addr@2.0.4
29 silly currentTree | `-- ipaddr.js@1.8.0
29 silly currentTree +-- qs@6.6.0
29 silly currentTree +-- range-parser@1.2.0
29 silly currentTree +-- raw-body@2.3.3
29 silly currentTree | +-- http-errors@1.6.3
29 silly currentTree | `-- iconv-lite@0.4.23
29 silly currentTree +-- rc@1.2.8
29 silly currentTree | `-- minimist@1.2.0
29 silly currentTree +-- readable-stream@2.3.6
29 silly currentTree +-- rimraf@2.6.2
29 silly currentTree +-- safe-buffer@5.1.2
29 silly currentTree +-- safer-buffer@2.1.2
29 silly currentTree +-- sax@1.2.4
29 silly currentTree +-- semver@5.6.0
29 silly currentTree +-- send@0.16.2
29 silly currentTree | +-- http-errors@1.6.3
29 silly currentTree | +-- mime@1.4.1
29 silly currentTree | `-- statuses@1.4.0
29 silly currentTree +-- serve-favicon@2.5.0
29 silly currentTree | +-- ms@2.1.1
29 silly currentTree | `-- safe-buffer@5.1.1
29 silly currentTree +-- serve-static@1.13.2
29 silly currentTree +-- set-blocking@2.0.0
29 silly currentTree +-- setprototypeof@1.1.0
29 silly currentTree +-- signal-exit@3.0.2
29 silly currentTree +-- statuses@1.5.0
29 silly currentTree +-- string_decoder@1.1.1
29 silly currentTree +-- string-width@1.0.2
29 silly currentTree +-- strip-ansi@3.0.1
29 silly currentTree +-- strip-json-comments@2.0.1
29 silly currentTree +-- tar@4.4.8
29 silly currentTree +-- through@2.3.8
29 silly currentTree +-- toidentifier@1.0.0
29 silly currentTree +-- type-is@1.6.16
29 silly currentTree +-- unpipe@1.0.0
29 silly currentTree +-- util-deprecate@1.0.2
29 silly currentTree +-- utils-merge@1.0.1
29 silly currentTree +-- vary@1.1.2
29 silly currentTree +-- wide-align@1.1.3
29 silly currentTree +-- wrappy@1.0.2
29 silly currentTree `-- yallist@3.0.3
30 silly idealTree Client
30 silly idealTree +-- abbrev@1.1.1
30 silly idealTree +-- accepts@1.3.5
30 silly idealTree +-- ansi-regex@2.1.1
30 silly idealTree +-- aproba@1.2.0
30 silly idealTree +-- are-we-there-yet@1.1.5
30 silly idealTree +-- array-flatten@1.1.1
30 silly idealTree +-- balanced-match@1.0.0
30 silly idealTree +-- basic-auth@1.1.0
30 silly idealTree +-- body-parser@1.18.3
30 silly idealTree | +-- http-errors@1.6.3
30 silly idealTree | +-- iconv-lite@0.4.23
30 silly idealTree | `-- qs@6.5.2
30 silly idealTree +-- brace-expansion@1.1.11
30 silly idealTree +-- bytes@3.0.0
30 silly idealTree +-- chownr@1.1.1
30 silly idealTree +-- co@4.6.0
30 silly idealTree +-- code-point-at@1.1.0
30 silly idealTree +-- colors@1.3.2
30 silly idealTree +-- compressible@2.0.15
30 silly idealTree +-- compression@1.7.3
30 silly idealTree +-- concat-map@0.0.1
30 silly idealTree +-- console-control-strings@1.1.0
30 silly idealTree +-- content-disposition@0.5.2
30 silly idealTree +-- content-type@1.0.4
30 silly idealTree +-- cookie-signature@1.1.0
30 silly idealTree +-- cookie@0.3.1
30 silly idealTree +-- core-util-is@1.0.2
30 silly idealTree +-- debug@2.6.9
30 silly idealTree +-- deep-extend@0.6.0
30 silly idealTree +-- delegates@1.0.0
30 silly idealTree +-- depd@1.1.2
30 silly idealTree +-- destroy@1.0.4
30 silly idealTree +-- detect-libc@1.0.3
30 silly idealTree +-- easy-monitor@2.2.6-rc.0
30 silly idealTree +-- ee-first@1.1.1
30 silly idealTree +-- ejs@2.6.1
30 silly idealTree +-- encodeurl@1.0.2
30 silly idealTree +-- escape-html@1.0.3
30 silly idealTree +-- etag@1.8.1
30 silly idealTree +-- express@4.16.4
30 silly idealTree | +-- cookie-signature@1.0.6
30 silly idealTree | +-- qs@6.5.2
30 silly idealTree | `-- statuses@1.4.0
30 silly idealTree +-- finalhandler@1.1.1
30 silly idealTree | `-- statuses@1.4.0
30 silly idealTree +-- forwarded@0.1.2
30 silly idealTree +-- fresh@0.5.2
30 silly idealTree +-- fs-minipass@1.2.5
30 silly idealTree +-- fs.realpath@1.0.0
30 silly idealTree +-- gauge@2.7.4
30 silly idealTree +-- glob@7.1.3
30 silly idealTree +-- has-unicode@2.0.1
30 silly idealTree +-- http-errors@1.7.1
30 silly idealTree +-- iconv-lite@0.4.24
30 silly idealTree +-- ignore-walk@3.0.1
30 silly idealTree +-- inflight@1.0.6
30 silly idealTree +-- inherits@2.0.3
30 silly idealTree +-- ini@1.3.5
30 silly idealTree +-- ipaddr.js@1.8.1
30 silly idealTree +-- is-fullwidth-code-point@1.0.0
30 silly idealTree +-- isarray@1.0.0
30 silly idealTree +-- jsonparse@1.3.1
30 silly idealTree +-- JSONStream@1.3.5
30 silly idealTree +-- lodash@4.17.11
30 silly idealTree +-- media-typer@0.3.0
30 silly idealTree +-- merge-descriptors@1.0.1
30 silly idealTree +-- methods@1.1.2
30 silly idealTree +-- mime-db@1.37.0
30 silly idealTree +-- mime-types@2.1.21
30 silly idealTree +-- mime@1.6.0
30 silly idealTree +-- minimatch@3.0.4
30 silly idealTree +-- minimist@0.0.8
30 silly idealTree +-- minipass@2.3.5
30 silly idealTree +-- minizlib@1.1.1
30 silly idealTree +-- mkdirp@0.5.1
30 silly idealTree +-- ms@2.0.0
30 silly idealTree +-- nan@2.11.1
30 silly idealTree +-- needle@2.2.4
30 silly idealTree +-- negotiator@0.6.1
30 silly idealTree +-- node-pre-gyp@0.12.0
30 silly idealTree +-- nopt@4.0.1
30 silly idealTree +-- npm-bundled@1.0.5
30 silly idealTree +-- npm-packlist@1.1.12
30 silly idealTree +-- npmlog@4.1.2
30 silly idealTree +-- number-is-nan@1.0.1
30 silly idealTree +-- object-assign@4.1.1
30 silly idealTree +-- on-finished@2.3.0
30 silly idealTree +-- on-headers@1.0.1
30 silly idealTree +-- once@1.4.0
30 silly idealTree +-- os-homedir@1.0.2
30 silly idealTree +-- os-tmpdir@1.0.2
30 silly idealTree +-- osenv@0.1.5
30 silly idealTree +-- parseurl@1.3.2
30 silly idealTree +-- path-is-absolute@1.0.1
30 silly idealTree +-- path-to-regexp@0.1.7
30 silly idealTree +-- pretty-bytes@4.0.2
30 silly idealTree +-- process-nextick-args@2.0.0
30 silly idealTree +-- proxy-addr@2.0.4
30 silly idealTree | `-- ipaddr.js@1.8.0
30 silly idealTree +-- qs@6.6.0
30 silly idealTree +-- range-parser@1.2.0
30 silly idealTree +-- raw-body@2.3.3
30 silly idealTree | +-- http-errors@1.6.3
30 silly idealTree | `-- iconv-lite@0.4.23
30 silly idealTree +-- rc@1.2.8
30 silly idealTree | `-- minimist@1.2.0
30 silly idealTree +-- readable-stream@2.3.6
30 silly idealTree +-- rimraf@2.6.2
30 silly idealTree +-- safe-buffer@5.1.2
30 silly idealTree +-- safer-buffer@2.1.2
30 silly idealTree +-- sax@1.2.4
30 silly idealTree +-- semver@5.6.0
30 silly idealTree +-- send@0.16.2
30 silly idealTree | +-- http-errors@1.6.3
30 silly idealTree | +-- mime@1.4.1
30 silly idealTree | `-- statuses@1.4.0
30 silly idealTree +-- serve-favicon@2.5.0
30 silly idealTree | +-- ms@2.1.1
30 silly idealTree | `-- safe-buffer@5.1.1
30 silly idealTree +-- serve-static@1.13.2
30 silly idealTree +-- set-blocking@2.0.0
30 silly idealTree +-- setprototypeof@1.1.0
30 silly idealTree +-- signal-exit@3.0.2
30 silly idealTree +-- statuses@1.5.0
30 silly idealTree +-- string_decoder@1.1.1
30 silly idealTree +-- string-width@1.0.2
30 silly idealTree +-- strip-ansi@3.0.1
30 silly idealTree +-- strip-json-comments@2.0.1
30 silly idealTree +-- tar@4.4.8
30 silly idealTree +-- through@2.3.8
30 silly idealTree +-- toidentifier@1.0.0
30 silly idealTree +-- type-is@1.6.16
30 silly idealTree +-- unpipe@1.0.0
30 silly idealTree +-- util-deprecate@1.0.2
30 silly idealTree +-- utils-merge@1.0.1
30 silly idealTree +-- v8-profiler-node8@6.0.1
30 silly idealTree | `-- node-pre-gyp@0.11.0
30 silly idealTree +-- vary@1.1.2
30 silly idealTree +-- wide-align@1.1.3
30 silly idealTree +-- wrappy@1.0.2
30 silly idealTree `-- yallist@3.0.3
31 silly install generateActionsToTake
32 timing stage:generateActionsToTake Completed in 29ms
33 silly diffTrees action count 4
34 silly diffTrees add nan@2.11.1
35 silly diffTrees add node-pre-gyp@0.11.0
36 silly diffTrees add v8-profiler-node8@6.0.1
37 silly diffTrees add easy-monitor@2.2.6-rc.0
38 silly decomposeActions action count 32
39 silly decomposeActions fetch nan@2.11.1
40 silly decomposeActions extract nan@2.11.1
41 silly decomposeActions preinstall nan@2.11.1
42 silly decomposeActions build nan@2.11.1
43 silly decomposeActions install nan@2.11.1
44 silly decomposeActions postinstall nan@2.11.1
45 silly decomposeActions finalize nan@2.11.1
46 silly decomposeActions refresh-package-json nan@2.11.1
47 silly decomposeActions fetch node-pre-gyp@0.11.0
48 silly decomposeActions extract node-pre-gyp@0.11.0
49 silly decomposeActions preinstall node-pre-gyp@0.11.0
50 silly decomposeActions build node-pre-gyp@0.11.0
51 silly decomposeActions install node-pre-gyp@0.11.0
52 silly decomposeActions postinstall node-pre-gyp@0.11.0
53 silly decomposeActions finalize node-pre-gyp@0.11.0
54 silly decomposeActions refresh-package-json node-pre-gyp@0.11.0
55 silly decomposeActions fetch v8-profiler-node8@6.0.1
56 silly decomposeActions extract v8-profiler-node8@6.0.1
57 silly decomposeActions preinstall v8-profiler-node8@6.0.1
58 silly decomposeActions build v8-profiler-node8@6.0.1
59 silly decomposeActions install v8-profiler-node8@6.0.1
60 silly decomposeActions postinstall v8-profiler-node8@6.0.1
61 silly decomposeActions finalize v8-profiler-node8@6.0.1
62 silly decomposeActions refresh-package-json v8-profiler-node8@6.0.1
63 silly decomposeActions fetch easy-monitor@2.2.6-rc.0
64 silly decomposeActions extract easy-monitor@2.2.6-rc.0
65 silly decomposeActions preinstall easy-monitor@2.2.6-rc.0
66 silly decomposeActions build easy-monitor@2.2.6-rc.0
67 silly decomposeActions install easy-monitor@2.2.6-rc.0
68 silly decomposeActions postinstall easy-monitor@2.2.6-rc.0
69 silly decomposeActions finalize easy-monitor@2.2.6-rc.0
70 silly decomposeActions refresh-package-json easy-monitor@2.2.6-rc.0
71 silly install executeActions
72 silly doSerial global-install 32
73 verbose correctMkdir C:\Users\Client\AppData\Roaming\npm-cache\_locks correctMkdir not in flight; initializing
74 timing audit compress Completed in 4ms
75 info audit Submitting payload of 6468bytes
76 verbose lock using C:\Users\Client\AppData\Roaming\npm-cache\_locks\staging-0f116ff4a537fc52.lock for C:\Users\Client\node_modules\.staging
77 silly doParallel extract 4
78 silly extract nan@2.11.1
79 silly extract node-pre-gyp@0.11.0
80 silly extract v8-profiler-node8@6.0.1
81 silly extract easy-monitor@2.2.6-rc.0
82 silly tarball trying nan@^2.5.1 by hash: sha1-kOIrzLjKV+pM03zIPTgZtS7qZ2Y=
83 silly tarball trying node-pre-gyp@^0.11.0 by hash: sha1-2x8zIVJy9pLNOPAyOOPptHxd0FQ=
84 silly tarball trying v8-profiler-node8@^6.0.1 by hash: sha1-JVj12rdiLyMFIT5sy03eH2bMYx8=
85 silly tarball trying easy-monitor@latest by hash: sha1-UguUR9oVtWRuY+UJuClp4mBMC88=
86 silly extract v8-profiler-node8@^6.0.1 extracted to C:\Users\Client\node_modules\.staging\v8-profiler-node8-a3d8f880 (81ms)
87 silly extract node-pre-gyp@^0.11.0 extracted to C:\Users\Client\node_modules\.staging\node-pre-gyp-51c786c3 (102ms)
88 http fetch POST 404 https://registry.npm.taobao.org/-/npm/v1/security/audits/quick 209ms
89 silly extract nan@^2.5.1 extracted to C:\Users\Client\node_modules\.staging\nan-1e281254 (118ms)
90 silly extract easy-monitor@latest extracted to C:\Users\Client\node_modules\.staging\easy-monitor-df95bbbb (220ms)
91 timing action:extract Completed in 223ms
92 silly doReverseSerial unbuild 32
93 silly doSerial remove 32
94 silly doSerial move 32
95 silly doSerial finalize 32
96 silly finalize C:\Users\Client\node_modules\nan
97 silly finalize C:\Users\Client\node_modules\v8-profiler-node8\node_modules\node-pre-gyp
98 silly finalize C:\Users\Client\node_modules\v8-profiler-node8
99 silly finalize C:\Users\Client\node_modules\easy-monitor
100 timing action:finalize Completed in 29ms
101 silly doParallel refresh-package-json 4
102 silly refresh-package-json C:\Users\Client\node_modules\nan
103 silly refresh-package-json C:\Users\Client\node_modules\v8-profiler-node8\node_modules\node-pre-gyp
104 silly refresh-package-json C:\Users\Client\node_modules\v8-profiler-node8
105 silly refresh-package-json C:\Users\Client\node_modules\easy-monitor
106 timing action:refresh-package-json Completed in 20ms
107 silly doParallel preinstall 4
108 silly preinstall nan@2.11.1
109 info lifecycle nan@2.11.1~preinstall: nan@2.11.1
110 silly preinstall node-pre-gyp@0.11.0
111 info lifecycle node-pre-gyp@0.11.0~preinstall: node-pre-gyp@0.11.0
112 silly preinstall v8-profiler-node8@6.0.1
113 info lifecycle v8-profiler-node8@6.0.1~preinstall: v8-profiler-node8@6.0.1
114 silly preinstall easy-monitor@2.2.6-rc.0
115 info lifecycle easy-monitor@2.2.6-rc.0~preinstall: easy-monitor@2.2.6-rc.0
116 verbose lifecycle v8-profiler-node8@6.0.1~preinstall: unsafe-perm in lifecycle true
117 verbose lifecycle v8-profiler-node8@6.0.1~preinstall: PATH: C:\Users\Client\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\Users\Client\node_modules\v8-profiler-node8\node_modules\.bin;C:\Users\Client\node_modules\.bin;C:\Python27\;C:\Python27\Scripts;C:\Program Files (x86)\Java\jre1.8.0_151\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\EmEditor;D:\Program Files\IDM Computer Solutions\UltraEdit;C:\Program Files (x86)\CMake\bin;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\nodejs\;D:\Users\ChengXu1\AppData\Local\Atlassian\SourceTree\git_local\bin;C:\xampp\php;C:\Program Files (x86)\Microsoft VS Code\bin;C:\Users\Client\AppData\Roaming\npm;C:\Program Files (x86)\Egret\Egret Wing 3\bin
118 verbose lifecycle v8-profiler-node8@6.0.1~preinstall: CWD: C:\Users\Client\node_modules\v8-profiler-node8
119 silly lifecycle v8-profiler-node8@6.0.1~preinstall: Args: [ '/d /s /c', 'node -e \'process.exit(0)\'' ]
120 silly lifecycle v8-profiler-node8@6.0.1~preinstall: Returned: code: 0  signal: null
121 timing action:preinstall Completed in 177ms
122 silly doSerial build 32
123 silly build nan@2.11.1
124 info linkStuff nan@2.11.1
125 silly linkStuff nan@2.11.1 has C:\Users\Client\node_modules as its parent node_modules
126 silly build node-pre-gyp@0.11.0
127 info linkStuff node-pre-gyp@0.11.0
128 silly linkStuff node-pre-gyp@0.11.0 has C:\Users\Client\node_modules\v8-profiler-node8\node_modules as its parent node_modules
129 verbose linkBins [ { 'node-pre-gyp': './bin/node-pre-gyp' },
129 verbose linkBins   'C:\\Users\\Client\\node_modules\\v8-profiler-node8\\node_modules\\.bin',
129 verbose linkBins   false ]
130 silly build v8-profiler-node8@6.0.1
131 info linkStuff v8-profiler-node8@6.0.1
132 silly linkStuff v8-profiler-node8@6.0.1 has C:\Users\Client\node_modules as its parent node_modules
133 silly build easy-monitor@2.2.6-rc.0
134 info linkStuff easy-monitor@2.2.6-rc.0
135 silly linkStuff easy-monitor@2.2.6-rc.0 has C:\Users\Client\node_modules as its parent node_modules
136 timing action:build Completed in 8ms
137 silly doSerial global-link 32
138 silly doParallel update-linked 0
139 silly doSerial install 32
140 silly install nan@2.11.1
141 info lifecycle nan@2.11.1~install: nan@2.11.1
142 silly install node-pre-gyp@0.11.0
143 info lifecycle node-pre-gyp@0.11.0~install: node-pre-gyp@0.11.0
144 silly install v8-profiler-node8@6.0.1
145 info lifecycle v8-profiler-node8@6.0.1~install: v8-profiler-node8@6.0.1
146 verbose lifecycle v8-profiler-node8@6.0.1~install: unsafe-perm in lifecycle true
147 verbose lifecycle v8-profiler-node8@6.0.1~install: PATH: C:\Users\Client\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\Users\Client\node_modules\v8-profiler-node8\node_modules\.bin;C:\Users\Client\node_modules\.bin;C:\Python27\;C:\Python27\Scripts;C:\Program Files (x86)\Java\jre1.8.0_151\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\EmEditor;D:\Program Files\IDM Computer Solutions\UltraEdit;C:\Program Files (x86)\CMake\bin;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\nodejs\;D:\Users\ChengXu1\AppData\Local\Atlassian\SourceTree\git_local\bin;C:\xampp\php;C:\Program Files (x86)\Microsoft VS Code\bin;C:\Users\Client\AppData\Roaming\npm;C:\Program Files (x86)\Egret\Egret Wing 3\bin
148 verbose lifecycle v8-profiler-node8@6.0.1~install: CWD: C:\Users\Client\node_modules\v8-profiler-node8
149 silly lifecycle v8-profiler-node8@6.0.1~install: Args: [ '/d /s /c', 'node-pre-gyp install --fallback-to-build' ]
150 silly lifecycle v8-profiler-node8@6.0.1~install: Returned: code: 1  signal: null
151 info lifecycle v8-profiler-node8@6.0.1~install: Failed to exec install script
152 timing action:install Completed in 13529ms
153 verbose unlock done using C:\Users\Client\AppData\Roaming\npm-cache\_locks\staging-0f116ff4a537fc52.lock for C:\Users\Client\node_modules\.staging
154 timing stage:rollbackFailedOptional Completed in 70ms
155 timing stage:runTopLevelLifecycles Completed in 15582ms
156 silly saveTree Client
156 silly saveTree +-- abbrev@1.1.1
156 silly saveTree +-- accepts@1.3.5
156 silly saveTree | +-- mime-types@2.1.21
156 silly saveTree | | `-- mime-db@1.37.0
156 silly saveTree | `-- negotiator@0.6.1
156 silly saveTree +-- ansi-regex@2.1.1
156 silly saveTree +-- aproba@1.2.0
156 silly saveTree +-- are-we-there-yet@1.1.5
156 silly saveTree | +-- delegates@1.0.0
156 silly saveTree | `-- readable-stream@2.3.6
156 silly saveTree |   +-- core-util-is@1.0.2
156 silly saveTree |   +-- inherits@2.0.3
156 silly saveTree |   +-- isarray@1.0.0
156 silly saveTree |   +-- process-nextick-args@2.0.0
156 silly saveTree |   +-- safe-buffer@5.1.2
156 silly saveTree |   +-- string_decoder@1.1.1
156 silly saveTree |   `-- util-deprecate@1.0.2
156 silly saveTree +-- array-flatten@1.1.1
156 silly saveTree +-- balanced-match@1.0.0
156 silly saveTree +-- basic-auth@1.1.0
156 silly saveTree +-- body-parser@1.18.3
156 silly saveTree | +-- bytes@3.0.0
156 silly saveTree | +-- content-type@1.0.4
156 silly saveTree | +-- debug@2.6.9
156 silly saveTree | | `-- ms@2.0.0
156 silly saveTree | +-- depd@1.1.2
156 silly saveTree | +-- http-errors@1.6.3
156 silly saveTree | | +-- setprototypeof@1.1.0
156 silly saveTree | | `-- statuses@1.5.0
156 silly saveTree | +-- iconv-lite@0.4.23
156 silly saveTree | | `-- safer-buffer@2.1.2
156 silly saveTree | +-- on-finished@2.3.0
156 silly saveTree | | `-- ee-first@1.1.1
156 silly saveTree | +-- qs@6.5.2
156 silly saveTree | +-- raw-body@2.3.3
156 silly saveTree | | +-- http-errors@1.6.3
156 silly saveTree | | +-- iconv-lite@0.4.23
156 silly saveTree | | `-- unpipe@1.0.0
156 silly saveTree | `-- type-is@1.6.16
156 silly saveTree |   `-- media-typer@0.3.0
156 silly saveTree +-- brace-expansion@1.1.11
156 silly saveTree | `-- concat-map@0.0.1
156 silly saveTree +-- bytes@3.0.0
156 silly saveTree +-- chownr@1.1.1
156 silly saveTree +-- co@4.6.0
156 silly saveTree +-- code-point-at@1.1.0
156 silly saveTree +-- colors@1.3.2
156 silly saveTree +-- compressible@2.0.15
156 silly saveTree +-- compression@1.7.3
156 silly saveTree | +-- on-headers@1.0.1
156 silly saveTree | `-- vary@1.1.2
156 silly saveTree +-- concat-map@0.0.1
156 silly saveTree +-- console-control-strings@1.1.0
156 silly saveTree +-- content-disposition@0.5.2
156 silly saveTree +-- content-type@1.0.4
156 silly saveTree +-- cookie-signature@1.1.0
156 silly saveTree +-- cookie@0.3.1
156 silly saveTree +-- core-util-is@1.0.2
156 silly saveTree +-- debug@2.6.9
156 silly saveTree +-- deep-extend@0.6.0
156 silly saveTree +-- delegates@1.0.0
156 silly saveTree +-- depd@1.1.2
156 silly saveTree +-- destroy@1.0.4
156 silly saveTree +-- detect-libc@1.0.3
156 silly saveTree +-- easy-monitor@2.2.6-rc.0
156 silly saveTree | +-- ejs@2.6.1
156 silly saveTree | +-- express@4.16.4
156 silly saveTree | | +-- cookie-signature@1.0.6
156 silly saveTree | | +-- encodeurl@1.0.2
156 silly saveTree | | +-- escape-html@1.0.3
156 silly saveTree | | +-- etag@1.8.1
156 silly saveTree | | +-- finalhandler@1.1.1
156 silly saveTree | | | +-- parseurl@1.3.2
156 silly saveTree | | | `-- statuses@1.4.0
156 silly saveTree | | +-- fresh@0.5.2
156 silly saveTree | | +-- merge-descriptors@1.0.1
156 silly saveTree | | +-- methods@1.1.2
156 silly saveTree | | +-- parseurl@1.3.2
156 silly saveTree | | +-- path-to-regexp@0.1.7
156 silly saveTree | | +-- proxy-addr@2.0.4
156 silly saveTree | | | +-- forwarded@0.1.2
156 silly saveTree | | | `-- ipaddr.js@1.8.0
156 silly saveTree | | +-- qs@6.5.2
156 silly saveTree | | +-- range-parser@1.2.0
156 silly saveTree | | +-- send@0.16.2
156 silly saveTree | | | +-- http-errors@1.6.3
156 silly saveTree | | | | `-- statuses@1.4.0
156 silly saveTree | | | +-- mime@1.4.1
156 silly saveTree | | | `-- statuses@1.4.0
156 silly saveTree | | +-- serve-static@1.13.2
156 silly saveTree | | +-- statuses@1.4.0
156 silly saveTree | | `-- utils-merge@1.0.1
156 silly saveTree | +-- glob@7.1.3
156 silly saveTree | | +-- fs.realpath@1.0.0
156 silly saveTree | | +-- inflight@1.0.6
156 silly saveTree | | | +-- once@1.4.0
156 silly saveTree | | | | `-- wrappy@1.0.2
156 silly saveTree | | | `-- wrappy@1.0.2
156 silly saveTree | | +-- minimatch@3.0.4
156 silly saveTree | | +-- once@1.4.0
156 silly saveTree | | `-- path-is-absolute@1.0.1
156 silly saveTree | +-- JSONStream@1.3.5
156 silly saveTree | | +-- jsonparse@1.3.1
156 silly saveTree | | `-- through@2.3.8
156 silly saveTree | +-- lodash@4.17.11
156 silly saveTree | +-- pretty-bytes@4.0.2
156 silly saveTree | +-- serve-favicon@2.5.0
156 silly saveTree | | +-- ms@2.1.1
156 silly saveTree | | `-- safe-buffer@5.1.1
156 silly saveTree | `-- v8-profiler-node8@6.0.1
156 silly saveTree |   +-- nan@2.11.1
156 silly saveTree |   `-- node-pre-gyp@0.11.0
156 silly saveTree |     +-- mkdirp@0.5.1
156 silly saveTree |     | `-- minimist@0.0.8
156 silly saveTree |     +-- needle@2.2.4
156 silly saveTree |     | +-- iconv-lite@0.4.24
156 silly saveTree |     | `-- sax@1.2.4
156 silly saveTree |     +-- nopt@4.0.1
156 silly saveTree |     | `-- osenv@0.1.5
156 silly saveTree |     |   +-- os-homedir@1.0.2
156 silly saveTree |     |   `-- os-tmpdir@1.0.2
156 silly saveTree |     +-- npm-packlist@1.1.12
156 silly saveTree |     | +-- ignore-walk@3.0.1
156 silly saveTree |     | `-- npm-bundled@1.0.5
156 silly saveTree |     +-- npmlog@4.1.2
156 silly saveTree |     | +-- gauge@2.7.4
156 silly saveTree |     | | +-- has-unicode@2.0.1
156 silly saveTree |     | | +-- object-assign@4.1.1
156 silly saveTree |     | | +-- signal-exit@3.0.2
156 silly saveTree |     | | +-- string-width@1.0.2
156 silly saveTree |     | | | +-- is-fullwidth-code-point@1.0.0
156 silly saveTree |     | | | | `-- number-is-nan@1.0.1
156 silly saveTree |     | | | `-- strip-ansi@3.0.1
156 silly saveTree |     | | +-- strip-ansi@3.0.1
156 silly saveTree |     | | `-- wide-align@1.1.3
156 silly saveTree |     | `-- set-blocking@2.0.0
156 silly saveTree |     +-- rc@1.2.8
156 silly saveTree |     | +-- ini@1.3.5
156 silly saveTree |     | +-- minimist@1.2.0
156 silly saveTree |     | `-- strip-json-comments@2.0.1
156 silly saveTree |     +-- rimraf@2.6.2
156 silly saveTree |     +-- semver@5.6.0
156 silly saveTree |     `-- tar@4.4.8
156 silly saveTree |       +-- fs-minipass@1.2.5
156 silly saveTree |       | `-- minipass@2.3.5
156 silly saveTree |       |   `-- yallist@3.0.3
156 silly saveTree |       +-- minipass@2.3.5
156 silly saveTree |       +-- minizlib@1.1.1
156 silly saveTree |       `-- yallist@3.0.3
156 silly saveTree +-- ee-first@1.1.1
156 silly saveTree +-- ejs@2.6.1
156 silly saveTree +-- encodeurl@1.0.2
156 silly saveTree +-- escape-html@1.0.3
156 silly saveTree +-- etag@1.8.1
156 silly saveTree +-- express@4.16.4
156 silly saveTree +-- finalhandler@1.1.1
156 silly saveTree +-- forwarded@0.1.2
156 silly saveTree +-- fresh@0.5.2
156 silly saveTree +-- fs-minipass@1.2.5
156 silly saveTree +-- fs.realpath@1.0.0
156 silly saveTree +-- gauge@2.7.4
156 silly saveTree +-- glob@7.1.3
156 silly saveTree +-- has-unicode@2.0.1
156 silly saveTree +-- http-errors@1.7.1
156 silly saveTree | `-- toidentifier@1.0.0
156 silly saveTree +-- iconv-lite@0.4.24
156 silly saveTree +-- ignore-walk@3.0.1
156 silly saveTree +-- inflight@1.0.6
156 silly saveTree +-- inherits@2.0.3
156 silly saveTree +-- ini@1.3.5
156 silly saveTree +-- ipaddr.js@1.8.1
156 silly saveTree +-- is-fullwidth-code-point@1.0.0
156 silly saveTree +-- isarray@1.0.0
156 silly saveTree +-- jsonparse@1.3.1
156 silly saveTree +-- JSONStream@1.3.5
156 silly saveTree +-- lodash@4.17.11
156 silly saveTree +-- media-typer@0.3.0
156 silly saveTree +-- merge-descriptors@1.0.1
156 silly saveTree +-- methods@1.1.2
156 silly saveTree +-- mime-db@1.37.0
156 silly saveTree +-- mime-types@2.1.21
156 silly saveTree +-- mime@1.6.0
156 silly saveTree +-- minimatch@3.0.4
156 silly saveTree +-- minimist@0.0.8
156 silly saveTree +-- minipass@2.3.5
156 silly saveTree +-- minizlib@1.1.1
156 silly saveTree +-- mkdirp@0.5.1
156 silly saveTree +-- ms@2.0.0
156 silly saveTree +-- needle@2.2.4
156 silly saveTree +-- negotiator@0.6.1
156 silly saveTree +-- node-pre-gyp@0.12.0
156 silly saveTree +-- nopt@4.0.1
156 silly saveTree +-- npm-bundled@1.0.5
156 silly saveTree +-- npm-packlist@1.1.12
156 silly saveTree +-- npmlog@4.1.2
156 silly saveTree +-- number-is-nan@1.0.1
156 silly saveTree +-- object-assign@4.1.1
156 silly saveTree +-- on-finished@2.3.0
156 silly saveTree +-- on-headers@1.0.1
156 silly saveTree +-- once@1.4.0
156 silly saveTree +-- os-homedir@1.0.2
156 silly saveTree +-- os-tmpdir@1.0.2
156 silly saveTree +-- osenv@0.1.5
156 silly saveTree +-- parseurl@1.3.2
156 silly saveTree +-- path-is-absolute@1.0.1
156 silly saveTree +-- path-to-regexp@0.1.7
156 silly saveTree +-- pretty-bytes@4.0.2
156 silly saveTree +-- process-nextick-args@2.0.0
156 silly saveTree +-- proxy-addr@2.0.4
156 silly saveTree +-- qs@6.6.0
156 silly saveTree +-- range-parser@1.2.0
156 silly saveTree +-- raw-body@2.3.3
156 silly saveTree +-- rc@1.2.8
156 silly saveTree +-- readable-stream@2.3.6
156 silly saveTree +-- rimraf@2.6.2
156 silly saveTree +-- safe-buffer@5.1.2
156 silly saveTree +-- safer-buffer@2.1.2
156 silly saveTree +-- sax@1.2.4
156 silly saveTree +-- semver@5.6.0
156 silly saveTree +-- send@0.16.2
156 silly saveTree +-- serve-favicon@2.5.0
156 silly saveTree +-- serve-static@1.13.2
156 silly saveTree +-- set-blocking@2.0.0
156 silly saveTree +-- setprototypeof@1.1.0
156 silly saveTree +-- signal-exit@3.0.2
156 silly saveTree +-- statuses@1.5.0
156 silly saveTree +-- string_decoder@1.1.1
156 silly saveTree +-- string-width@1.0.2
156 silly saveTree +-- strip-ansi@3.0.1
156 silly saveTree +-- strip-json-comments@2.0.1
156 silly saveTree +-- tar@4.4.8
156 silly saveTree +-- through@2.3.8
156 silly saveTree +-- toidentifier@1.0.0
156 silly saveTree +-- type-is@1.6.16
156 silly saveTree +-- unpipe@1.0.0
156 silly saveTree +-- util-deprecate@1.0.2
156 silly saveTree +-- utils-merge@1.0.1
156 silly saveTree +-- vary@1.1.2
156 silly saveTree +-- wide-align@1.1.3
156 silly saveTree +-- wrappy@1.0.2
156 silly saveTree `-- yallist@3.0.3
157 warn enoent ENOENT: no such file or directory, open 'C:\Users\Client\package.json'
158 verbose enoent This is related to npm not being able to find a file.
159 warn Client No description
160 warn Client No repository field.
161 warn Client No README data
162 warn Client No license field.
163 verbose stack Error: v8-profiler-node8@6.0.1 install: `node-pre-gyp install --fallback-to-build`
163 verbose stack Exit status 1
163 verbose stack     at EventEmitter.<anonymous> (C:\Users\Client\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\index.js:301:16)
163 verbose stack     at EventEmitter.emit (events.js:182:13)
163 verbose stack     at ChildProcess.<anonymous> (C:\Users\Client\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
163 verbose stack     at ChildProcess.emit (events.js:182:13)
163 verbose stack     at maybeClose (internal/child_process.js:962:16)
163 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
164 verbose pkgid v8-profiler-node8@6.0.1
165 verbose cwd C:\Users\Client
166 verbose Windows_NT 6.1.7601
167 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Client\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "easy-monitor"
168 verbose node v10.14.1
169 verbose npm  v6.4.1
170 error code ELIFECYCLE
171 error errno 1
172 error v8-profiler-node8@6.0.1 install: `node-pre-gyp install --fallback-to-build`
172 error Exit status 1
173 error Failed at the v8-profiler-node8@6.0.1 install script.
173 error This is probably not a problem with npm. There is likely additional logging output above.
174 verbose exit [ 1, true ]

WebStorm 安装报错提示如下 image.png

3 回复
  • npm install --global --production windows-build-tools
  • npm install -g node-gyp
  • npm install easy-monitor

应该就可以了,另外,想要在线上排查内存泄漏,了解下 Node.js 性能平台,功能更加全面哦

npm install --global --production windows-build-tools
npm install -g node-gyp
npm install easy-monitor

我找到解决办法了。 我不知道该怎么利用Github搜索问题,解决问题。 问题还是得到作者的提示,才找到解决方案的。 搜索地址:https://github.com/hyj1991/easy-monitor/issues?q=label%3Awindows+is%3Aclosed 解决地址:https://github.com/hyj1991/easy-monitor/issues/79

@Aaron009 你楼上那个就是作者

回到顶部