-
Notifications
You must be signed in to change notification settings - Fork 240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows 安装问题汇总 #96
Comments
node-pre-gyp WARN Using needle for node-pre-gyp https download
在此解决方案中一次生成一个项目。若要启用并行生成,请添加“/m”开关。 gyp ERR! build error npm ERR! A complete log of this run can be found in: |
按上述操作后还是不行 |
安装的 vs 版本,windows 版本,node 版本 |
把上面的 error 删掉一些吧,太长了,页面要拉好久 |
vs2010 windows7 nodejs-v10.14.2 |
看起来是 vs2010 对 c++ 11 支持的太少了,你可以升级下 vs 看看 |
好的,谢谢 |
我参考这边文章http://www.it610.com/article/3526541.htm解决了上述问题 安装node-gyp后进入到node-gyp安装目录 cd D:\nodejs\node_modules\node-gyp 然后执行 npm install --msvs_version=2010 再安装easy-monitor npm install easy-monitor 就可以了 |
@tom429001986 赞👍 |
前提安装好 node-gyp 和 node-pre-gyp
|
@zwlijun 对,这两步其实是编译 addon 必备的 |
@hyj1991 我遇到了跟#102一样的问题,但是我v8-profiler-node8安装并没有报错,我把详细信息贴在了#102最后面 |
@SaltFish001 看看运行时候的错误日志 |
@hyj1991
|
显然是安装 v8-profiler-node8 失败了 |
@hyj1991 这是我v8-profiler-node8的安装日志
node-pre-gyp WARN Using request for node-pre-gyp https download
removed 2 packages and updated 4 packages in 31.044s |
你编译用的 node 版本和运行这个进程用的 node 版本不一样啊。。。
这里显然是 node 版本内置的 NODE_MODULES 是 64,而你运行的时候请求的是:
这里寻找的是 70 这个版本的 node runtime,v8-profiler-node8 这个包是 addon,跨版本间是 ABI 不兼容的,没法运行 |
@hyj1991 是不是不支持node v12.0.0 |
马上要支持了,参见 v8-profiler-node8#pr#8 |
@hyj1991 新的报错,还是不行 |
@SaltFish001 已经发布了 v8-profiler-node8@6.1.0,支持 node-v4.x ~ node-v12.x,现在应该可以了吧 |
@hyj1991 上次的报错是我在10.11.0下测试得到的报错 |
这是一个 Addon,依赖于你的 node 版本编译的,你要在 10.11.0 下用,得用 node-v10.11.0 来进行编译 |
@hyj1991 ,我是用的10.11.0编译,我用nvm切换了版本的 |
这显然是编译都没过啊,所以才找不到 |
手动试下 npm i v8-profiler-node8 看看 |
@hyj1991 没有报错,但有很多warn,跟之前安装日志是一样的 |
@SaltFish001 你是不是有 package-json.lock 文件锁版本了啊,最新的是 v8-profiler-node8@6.1.0 |
warning 我都解决掉了 |
@SaltFish001 我找了台 win 的电脑,试了下 10.11.0 下安装 v8-profiler-node8 这个包,这样才是成功的: |
因为 Window 下经常有同学爆出安装失败的错误,现在提供如下解决方法:
而对于类似如下报错信息的错误
可以参见:nodejs 安装 node-gyp 报错 这篇文章的方式解决,实际上就是查看你的 visual studio 版本,然后执行:
然后再执行 easy-monitor 的安装。
如果依旧不行的话,可以再开一个 issue 讨论下
The text was updated successfully, but these errors were encountered: