Code Monkey home page Code Monkey logo

easy-monitor's Introduction

Easy-Monitor 3.0

Npm Codecov branch Continuous integration Npm License

点击 Easy-Monitor 2.0 分支 可以访问旧的 2.x 分支查看以前的版本。

点击 Easy-Monitor 3.0 部署样例 对 3.0 版本的控制台部署和应用接入效果以及功能进行预览。

3.0 简介

全新的企业级 Node.js 应用性能监控与线上故障定位解决方案。

旨在 Node.js 的开源生态工具链上做一些微小的事情,希望能帮助到想使用和正在使用 Node.js 的开发者更好地感知自己的 Node.js 应用状态,来面对性能和稳定性方面的挑战。

扫钉钉二维码码可以进入本项目的开源官方讨论钉钉群:

- 新特性

  • Linux / MacOS / Windows 全平台支持
  • 针对 Node.js 进程与系统指标的性能监控
  • 错误日志展示与依赖 Npm 模块安全风险提示
  • 自定义智能运维告警与线上进程实时状态导出

- 使用指南

Easy-Monitor 3.0 使用文档部署在语雀上,详细内容参见 Easy-Monitor 3.0 使用指南

- 项目地址

因为架构整体变动巨大,Easy-Monitor 3.0 划分了多个子模块存放于组织 X-Profiler 中,地址为:https://github.com/X-Profiler

项目具体拆分的各个子模块功能简述与仓库地址:

- 设计架构

architecture

- 技术栈

控制台前端基于 Vue.js + iView UI 框架编写,监控服务端部分则是基于 Egg.js 框架编写,UI 部分整体参考了 AliNode 控制台。

联系我

如果你在使用 Easy-Monitor 3.0 项目中遇到了问题,欢迎加入钉钉群 35149528 一起讨论。

希望本项目能帮助开发者解决更多开发遇到的问题,构建对大家对 Node.js 技术栈的信心,愿天下没有难用的 Node.js!

如果您觉得本项目对您有帮助,请我喝一杯咖啡吧。

easy-monitor's People

Contributors

dependabot[bot] avatar hyj1991 avatar neverthanmore avatar qinyang912 avatar x-cold avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

easy-monitor's Issues

安装easy-monitor失败

错误提示:
C:\Users\defaultuser0>npm install easy-monitor

[email protected] preinstall C:\Users\defaultuser0\node_modules\v8-profiler-node8
node -e 'process.exit(0)'

[email protected] install C:\Users\defaultuser0\node_modules\v8-profiler-node8
node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! Tried to download(404): https://node-inspector.s3.amazonaws.com/profiler/v5.7.0/node-v59-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v59 ABI, unknown) (falling back to source compile with node-gyp)
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "D:\python\python.EXE", you can set the PYTHON env variable.
gyp ERR! stack at PythonFinder.failNoPython (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:483:19)
gyp ERR! stack at PythonFinder. (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:508:16)
gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\polyfills.js:284:29
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:166:21)
gyp ERR! System Windows_NT 10.0.14393
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\Users\defaultuser0\node_modules\v8-profiler-node8\build\profiler\v5.7.6\node-v59-win32-x64\profiler.node" "--module_name=profiler" "--module_path=C:\Users\defaultuser0\node_modules\v8-profiler-node8\build\profiler\v5.7.6\node-v59-win32-x64"
gyp ERR! cwd C:\Users\defaultuser0\node_modules\v8-profiler-node8
gyp ERR! node -v v9.5.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\defaultuser0\node_modules\v8-profiler-node8\build\profiler\v5.7.6\node-v59-win32-x64\profiler.node --module_name=profiler --module_path=C:\Users\defaultuser0\node_modules\v8-profiler-node8\build\profiler\v5.7.6\node-v59-win32-x64' (1)
node-pre-gyp ERR! stack at ChildProcess. (C:\Users\defaultuser0\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:160:13)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:943:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5)
node-pre-gyp ERR! System Windows_NT 10.0.14393
node-pre-gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\defaultuser0\node_modules\node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd C:\Users\defaultuser0\node_modules\v8-profiler-node8
node-pre-gyp ERR! node -v v9.5.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.39
node-pre-gyp ERR! not ok
Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\defaultuser0\node_modules\v8-profiler-node8\build\profiler\v5.7.6\node-v59-win32-x64\profiler.node --module_name=profiler --module_path=C:\Users\defaultuser0\node_modules\v8-profiler-node8\build\profiler\v5.7.6\node-v59-win32-x64' (1)
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\defaultuser0\package.json'
npm WARN defaultuser0 No description
npm WARN defaultuser0 No repository field.
npm WARN defaultuser0 No README data
npm WARN defaultuser0 No license field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\defaultuser0\AppData\Roaming\npm-cache_logs\2018-02-27T06_49_25_625Z-debug.log

v8-profiler install error

image

看了下,是v8-profiler的问题,它这些issues还未修复,那如何安装这个包呢?

选择cpu + 子进程 无法进入分析页面。

选择cpu + 子进程 无法进入分析页面。
如果不选择cpu的话,正常

下面是后台报错:
2017-07-12 19:06:47 +08:00: [Easy-Monitor: dashboard <24953>] http.axios.profiler error: TypeError: Cannot read property 'composeKey' of undefined
12|cluster | 2017-07-12 19:06:47 +08:00: [Easy-Monitor: embrace <24942>] common.socket->onData error: TypeError: Cannot read property 'profilerP' of undefined
12|cluster | 2017-07-12 19:06:47 +08:00: [Easy-Monitor: dashboard <24953>] common.socket->onData error: TypeError: Cannot read property 'composeKey' of undefined
12|cluster | 2017-07-12 19:06:47 +08:00: [Easy-Monitor: dashboard <24953>] http.axios.profiler error: TypeError: Cannot read property 'composeKey' of undefined
12|cluster | 2017-07-12 19:06:47 +08:00: [Easy-Monitor: dashboard <24953>] http.axios.profiler error: TypeError: Cannot read property 'composeKey' of undefined
12|cluster | 2017-07-12 19:06:47 +08:00: [Easy-Monitor: dashboard <24953>] http.axios.detail error: TypeError: Cannot read property 'composeKey' of undefined
12|cluster | 2017-07-12 19:07:04 +08:00: [Easy-Monitor: dashboard <24953>] http.axios.profiler error: TypeError: Cannot read property 'composeKey' of undefined
12|cluster | 2017-07-12 19:07:04 +08:00: [Easy-Monitor: dashboard <24953>] http.axios.profiler error: TypeError: Cannot read property 'composeKey' of undefined
12|cluster | [Easy-Monitor: dashboard <24953>] http.axios.profiler error: TypeError: Cannot read property 'composeKey' of undefined
12|cluster | 2017-07-12 19:07:04 +08:00: [Easy-Monitor: dashboard <24953>] http.axios.detail error: TypeError: Cannot read property 'composeKey' of undefined

如果有时间的话,能否定位一下问题出在哪?
多谢。

lldb + llnode 服务化集成

长期工作,提供在线解析 core dump 文件的能力。堆栈异常 + 内存泄漏的比较终极的解决方案了

增加 Heap-Profile 分析

内存泄漏分析功能增强,预计 2.2.x 版本开发合并
难点在于 v8 的 heap-profiler 数据序列化和导出,目前有两种思路:

封装 inspector,低版本不支持
重写 v8-profiler-next,重写序列化,全版本支持

思考 ing...

实时的显示内存占用?

您好,我想问一上是否支持这个功能,我选择解析类型为OS,出来是实时的,但那个出来的坐标不太明白是什么意思,这个500的单位如果是M的话,为什么就是500了?单机不应该是1.4G?希望解答一下

重构项目

一期:UI部分采用 vue.js 重构
二期:后台部分处理逻辑彻底重构
三期:提供集群部署功能

附:ReadME重写

common.socket->onData error

用MEM检查内存的时候,浏览器会卡在“Memory Stream 准备完毕,即将开启子进程进行流式读取,此过程较慢,请耐心等待...”,cmd报错common.socket->onData error: TypeError: Cannot read property 'on' of null。
请问这个问题该怎么排查。

无法分析mem?

os可以,选择cpu或者mem就返回这个
{"success":false,"code":3,"error":"服务器内部错误!"}
求解……

v2.1.1 版本发布,更新如下

v2.1.1:

  • 优化了文档说明
  • 修正一处在开启第三方缓存模式下动态修改鉴权信息的 bug
  • CPU Profiling 结果解析算法优化,极大提升速度

出现如下错误

node版本:v8.4.0
选择 CPU和mem监控的时候 出现如下错误
[Easy-Monitor: dashboard <10448>] http.axios.profiler error: TypeError: Cannot read property 'composeKey' of undefined
[Easy-Monitor: dashboard <10448>] http.axios.profiler error: TypeError: Cannot read property 'composeKey' of undefined
[Easy-Monitor: dashboard <10448>] http.axios.detail error: TypeError: Cannot read property 'composeKey' of undefined
[Easy-Monitor: dashboard <10448>] http.axios.profiler error: TypeError: Cannot read property 'composeKey' of undefined

v2.1.3 版本发布,更新如下

v2.1.3:

  • 修正了开启子进程处理数据在 Node v6.4.0 及以下版本不支持的问题
  • 修正了开启计算的子进程内存溢出后导致主进程 WRITE EPIPE 的错误
  • 优化了 MEM 分析部分搜索任意节点的功能,如下:
    • 搜索任意节点一栏移至最上方
    • 展示由引力图更改为详细的树结构展示
    • 搜索逻辑更改为支持从 root 节点出发的限定深度内的所有节点
  • 优化了负责数据解析的子进程启动参数,以能够处理更大的 HeapSnapshot
  • 优化了 CPU & Memory 分析期间的中间态错误提示

您好,新手安装出错了

npm i easy-monitor -g

[email protected] preinstall C:\Users\xaj\AppData\Roaming\npm\node_modules\easy-monitor\node _modules\v8-profiler-node8
node -e 'process.exit(0)'

[email protected] install C:\Users\xaj\AppData\Roaming\npm\node_modules\easy-monitor\node_mo dules\v8-profiler-node8
node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! Tried to download(404): https://node-inspector.s3.amazonaws.com/profiler/v5.7.0/no de-v57-win32-ia32.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v57 ABI) (falling back to source compile with node-gyp)
▒ڴ˽▒▒▒▒▒▒▒▒һ▒▒▒▒▒▒һ▒▒▒▒Ŀ▒▒▒▒Ҫ▒▒▒ò▒▒▒▒▒▒ɣ▒▒▒▒▒ӡ▒/m▒▒▒▒▒ء▒
MSBUILD : error MSB4132: ▒޷▒ʶ▒𹤾߰汾▒▒2.0▒▒▒▒▒▒▒õĹ▒▒߰汾Ϊ "4.0"▒▒
gyp ERR! build error
gyp ERR! stack Error: C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe failed with exit c ode: 1
gyp ERR! stack at ChildProcess.onExit (C:\Users\xaj\AppData\Roaming\npm\node_modules\node-gyp\li b\build.js:258:23)
gyp ERR! stack at emitTwo (events.js:125:13)
gyp ERR! stack at ChildProcess.emit (events.js:213:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:197:12)
gyp ERR! System Windows_NT 10.0.15063
gyp ERR! command "C:\Program Files (x86)\nodejs\node.exe" "C:\Users\xaj\AppData\Roaming\npm\ \node_modules\node-gyp\bin\node-gyp.js" "build" "--fallback-to-build" "--module=C:\Users\xaj\A ppData\Roaming\npm\node_modules\easy-monitor\node_modules\v8-profiler-node8\build\profiler\ v5.7.6\node-v57-win32-ia32\profiler.node" "--module_name=profiler" "--module_path=C:\Users\xaj\ AppData\Roaming\npm\node_modules\easy-monitor\node_modules\v8-profiler-node8\build\profiler\ \v5.7.6\node-v57-win32-ia32"
gyp ERR! cwd C:\Users\xaj\AppData\Roaming\npm\node_modules\easy-monitor\node_modules\v8-profiler-nod e8
gyp ERR! node -v v8.1.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files (x86)\nodejs\node.exe C:\Users\xa j\AppData\Roaming\npm\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=C:\Us ers\xaj\AppData\Roaming\npm\node_modules\easy-monitor\node_modules\v8-profiler-node8\build\profiler\ v5.7.6\node-v57-win32-ia32\profiler.node --module_name=profiler --module_path=C:\Users\xaj\AppData\R oaming\npm\node_modules\easy-monitor\node_modules\v8-profiler-node8\build\profiler\v5.7.6\node-v57-w in32-ia32' (1)
node-pre-gyp ERR! stack at ChildProcess. (C:\Users\xaj\AppData\Roaming\npm\node_modul es\easy-monitor\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:125:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:213:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:887:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:208:5)
node-pre-gyp ERR! System Windows_NT 10.0.15063
node-pre-gyp ERR! command "C:\Program Files (x86)\nodejs\node.exe" "C:\Users\xaj\AppData\Roam ing\npm\node_modules\easy-monitor\node_modules\node-pre-gyp\bin\node-pre-gyp" "install" "--fa llback-to-build"
node-pre-gyp ERR! cwd C:\Users\xaj\AppData\Roaming\npm\node_modules\easy-monitor\node_modules\v8-pro filer-node8
node-pre-gyp ERR! node -v v8.1.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.36
node-pre-gyp ERR! not ok
Failed to execute 'C:\Program Files (x86)\nodejs\node.exe C:\Users\xaj\AppData\Roaming\npm\node_modu les\node-gyp\bin\node-gyp.js build --fallback-to-build --module=C:\Users\xaj\AppData\Roaming\npm\nod e_modules\easy-monitor\node_modules\v8-profiler-node8\build\profiler\v5.7.6\node-v57-win32-ia32\prof iler.node --module_name=profiler --module_path=C:\Users\xaj\AppData\Roaming\npm\node_modules\easy-mo nitor\node_modules\v8-profiler-node8\build\profiler\v5.7.6\node-v57-win32-ia32' (1)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\xaj\AppData\Roaming\npm-cache_logs\2017-07-27T08_25_24_414Z-debug.log

调用的时候报错?

[Easy-Monitor] <common.profiler.js> load error: Error: Cannot find module './build/profiler/v5.7.6/node-v48-win32-x64/profiler.node'

说明下重构的进度

目前重构基本已经完成
但是因为 v8-profiler 在 Node 8 下做堆快照导出有Bug,故还未正式升级放出,有兴趣的可以执行:

npm install easy-monitor@[email protected]

注意:Node 8 下配套的 npm 不再支持 tag,故 Node 8 用户需要如下安装:

npm install [email protected]

体验一下新版本,大致用法没有变化,新版本的文档还在撰写中,预计等 v8-profiler 在 Node 8 下的 Bug 修掉后放出正式升级~

最后有问题可以在这里提 issue,新版本兼容 Node v4 ~ Node v6

npm install easy-monitor安装报错,npm install v8-profiler-node8也是

我安装 npm install v8-profiler-node8
系统:win7 64 位

gyp ERR! node -v v8.9.3
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'node-gyp.cmd build --fallback-
to-build --module=K:\NodeJS\nodetest\node_modules\v8-profiler-node8\build\profil
er\v5.7.6\node-v57-win32-ia32\profiler.node --module_name=profiler --module_path
=K:\NodeJS\nodetest\node_modules\v8-profiler-node8\build\profiler\v5.7.6\node-v5
7-win32-ia32' (1)
node-pre-gyp ERR! stack at ChildProcess. (K:\NodeJS\nodetest\node
_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:126:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:214:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:925:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/chi
ld_process.js:209:5)

当使用子进程执行同一份脚本时,会出现无法监控的情况

[Easy-Monitor: embrace <16592>] common.socket->onData error: TypeError: Generator is already running
类似这样的log
配置为一个dashboard,独立运行没任何内容:

   easyMonitor({
        cluster: true,
        bootstrap: 'dashboard',
        dashboard: {
            port_http: 12333,
            port_tcp: 22333
        }
    });

然后每个需要监控的进程使用如下配置:

        easyMonitor({
            cluster: true,
            bootstrap: 'embrace',
            project_name: 'myproj_' + id,
            embrace: {
                tcp_host: '127.0.0.1',
                tcp_port: 22333,
            },
        });

最后会出现无法查看的情况,最多只能查看一个节点
使用childprocess.spawn来创建

使用yarn安装的时候, 疑似abbrev出现问题, npm没有问题

问题可能是你所引用的abbrev出现问题。
npm install 可以正常安装
yarn add 是失败的,错误信息如下:

error An unexpected error occurred: "EINVAL: invalid argument, lstat '/mnt/c/Web/hrm_api/node_modules/abbrev/package.json'".

需要更详细的情况,请联系我

v2.1.2 版本发布,更新如下

v2.1.2:

  • 修正了默认部署模式下开启 inspect 或 debug 调试时无法启动的问题
  • 修正了新的 CPU Profiling 算法下的计算调用者百分比的错误,页面增加了调用者函数名称的展示
  • 增加了通知子进程进行操作时的超时判定
  • 增加了配置长时间采集 CPU 数据时的中间态友好提示:总耗费 xxx 时长,剩余时间 xxx 时长
  • 增加了采集 CPU/Memory 数据分析支持开启子进程分析,减小对业务进程计算压力(可动态更改)

内存泄露问题定位不准确

这是我写的内存泄露测试代码

let theThing = null
    let replaceThing = function () {
        let leak = theThing
        let unuse = function () {
            if (leak) console.log('hi')
        }
        theThing = {
            longStr: new Array(1000000).join('*'),
            someMethod: function () {
                if(leak) 
                console.log('a')
            }
        }
    }
    router.get('/leak', async ctx => {
        replaceThing()
        ctx.body = '内存泄露测试'
    })

反复访问/leak接口。
然后打开监控页面提示有内存泄露。点击泄露节点打开引力图。发现泄露链的信息没有相关关键词,如下:

I. 泄漏链: ::@117359.context --> system / Context::@117357.this --> Router::@130443._switcher --> Switcher::@130447._cases --> Array::@144155.[1] --> Object::@117353.result --> Switcher::@117355._cases --> Array::@144333


II. 泄漏关键字: context, this, _switcher, _cases, [1], result

本来应该是有theThing, someMethod这种关键词的。
node版本:8.9.1。easy-monitor版本:2.2.1

求大佬解惑!

在node8.7.0下,安装v8-profiler可以成功,而v8-profiler-node8则失败

已经按照 https://github.com/nodejs/node-gyp#on-windows 安装node-gyp , python也设置好了。在node8.7.0下,安装v8-profiler可以成功,而v8-profiler-node8则失败

错误信息:

$ npm install -g v8-profiler-node8

[email protected] preinstall C:\Users\maifuquan\AppData\Roaming\npm\node_modules\v8-profiler-node8
node -e 'process.exit(0)'

[email protected] install C:\Users\maifuquan\AppData\Roaming\npm\node_modules\v8-profiler-node8
node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! Tried to download(404): https://node-inspector.s3.amazonaws.com/profiler/v5.7.0/node-v57-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v57 ABI, unknown) (falling back to source compile with node-gyp)
在此解决方案中一次生成一个项目。若要启用并行生成,请添加“/m”开关。
profiler.cc
cpu_profiler.cc
cpu_profile.cc
cpu_profile_node.cc
c:\users\maifuquan\appdata\roaming\npm\node_modules\v8-profiler-node8\node_modules\nan\nan_new.h(208)
: warning C4244: 'argument': conversion from 'int64_t' to 'double', possible loss of data (compiling
source file ..\src\cpu_profile.cc) [C:\Users\maifuquan\AppData\Roaming\npm\node_modules\v8-profiler-n
ode8\build\profiler.vcxproj]
..\src\cpu_profile.cc(82): note: see reference to function template instantiation 'v8::Local<v8::Nu
mber> Nan::Newv8::Number,int64_t(A0)' being compiled
with
[
A0=int64_t
]
heap_profiler.cc
heap_snapshot.cc
..\src\heap_profiler.cc : warning C4819: The file contains a character that cannot be represented in
the current code page (936). Save the file in Unicode format to prevent data loss [C:\Users\maifuquan
\AppData\Roaming\npm\node_modules\v8-profiler-node8\build\profiler.vcxproj]
heap_output_stream.cc
heap_graph_node.cc
..\src\heap_snapshot.cc(101): warning C4244: 'argument': conversion from 'int64_t' to 'uint32_t', pos
sible loss of data [C:\Users\maifuquan\AppData\Roaming\npm\node_modules\v8-profiler-node8\build\profi
ler.vcxproj]
..\src\heap_profiler.cc(77): fatal error C1018: unexpected #elif [C:\Users\maifuquan\AppData\Roaming
npm\node_modules\v8-profiler-node8\build\profiler.vcxproj]
heap_graph_edge.cc
..\src\heap_graph_node.cc(69): warning C4996: 'v8::Object::Has': was declared deprecated [C:\Users\ma
ifuquan\AppData\Roaming\npm\node_modules\v8-profiler-node8\build\profiler.vcxproj]
c:\users\maifuquan.node-gyp\8.7.0\include\node\v8.h(3156): note: see declaration of 'v8::Object::H
as'
c:\users\maifuquan\appdata\roaming\npm\node_modules\v8-profiler-node8\node_modules\nan\nan_new.h(208)
: warning C4244: 'argument': conversion from 'std::size_t' to 'double', possible loss of data (compil
ing source file ..\src\heap_graph_node.cc) [C:\Users\maifuquan\AppData\Roaming\npm\node_modules\v8-pr
ofiler-node8\build\profiler.vcxproj]
..\src\heap_graph_node.cc(126): note: see reference to function template instantiation 'v8::Local<v
8::Number> Nan::Newv8::Number,std::size_t(std::A0)' being compiled
with
[
A0=std::size_t
]
gyp ERR! build error
gyp ERR! stack Error: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Users\maifuquan\AppData\Roaming\npm\node_modules\node-gyp\lib\build.js:258:23)
gyp ERR! stack at emitTwo (events.js:125:13)
gyp ERR! stack at ChildProcess.emit (events.js:213:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Windows_NT 10.0.14393
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\maifuquan\AppData\Roaming\npm\node_modules\node-gyp\bin\node-gyp.js" "build" "--fallback-to-build" "--module=C:\Users\maifuquan\AppData\Roaming\npm\node_modules\v8-profiler-node8\build\profiler\v5.7.6\node-v57-win32-x64\profiler.node" "--module_name=profiler" "--module_path=C:\Users\maifuquan\AppData\Roaming\npm\node_modules\v8-profiler-node8\build\profiler\v5.7.6\node-v57-win32-x64"
gyp ERR! cwd C:\Users\maifuquan\AppData\Roaming\npm\node_modules\v8-profiler-node8
gyp ERR! node -v v8.7.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\maifuquan\AppData\Roaming\npm\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=C:\Users\maifuquan\AppData\Roaming\npm\node_modules\v8-profiler-node8\build\profiler\v5.7.6\node-v57-win32-x64\profiler.node --module_name=profiler --module_path=C:\Users\maifuquan\AppData\Roaming\npm\node_modules\v8-profiler-node8\build\profiler\v5.7.6\node-v57-win32-x64' (1)
node-pre-gyp ERR! stack at ChildProcess. (C:\Users\maifuquan\AppData\Roaming\npm\node_modules\v8-profiler-node8\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:125:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:213:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:927:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
node-pre-gyp ERR! System Windows_NT 10.0.14393
node-pre-gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\maifuquan\AppData\Roaming\npm\node_modules\v8-profiler-node8\node_modules\node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd C:\Users\maifuquan\AppData\Roaming\npm\node_modules\v8-profiler-node8
node-pre-gyp ERR! node -v v8.7.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.39
node-pre-gyp ERR! not ok
Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\maifuquan\AppData\Roaming\npm\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=C:\Users\maifuquan\AppData\Roaming\npm\node_modules\v8-profiler-node8\build\profiler\v5.7.6\node-v57-win32-x64\profiler.node --module_name=profiler --module_path=C:\Users\maifuquan\AppData\Roaming\npm\node_modules\v8-profiler-node8\build\profiler\v5.7.6\node-v57-win32-x64' (1)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\maifuquan\AppData\Roaming\npm-cache_logs\2017-12-04T14_48_32_656Z-debug.log

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.