Skip to content

node-gyp build error #1

@doomiris

Description

@doomiris

E:\Users\work_dominic\node-refprop-master>cnpm i
(node:1864) ExperimentalWarning: The fs.promises API is experimental
√ Installed 5 packages
√ Linked 119 latest versions
[1/2] scripts.install microtime@^3.0.0 run "node-gyp-build", root: "E:\Users\work_dominic\node-refprop-master\node_modules\_microtime@3.0.0@microtime"
[1/2] scripts.install microtime@^3.0.0 finished in 446ms
[2/2] scripts.install refprop@1.0.0 run "node-gyp rebuild", root: "E:\Users\work_dominic\node-refprop-master"

E:\Users\work_dominic\node-refprop-master>node "C:\Users\doomi\AppData\Roaming\npm\node_modules\cnpm\node_modules\npminstall\node-gyp-bin\node-gyp.js" rebuild
在此解决方案中一次生成一个项目。若要启用并行生成,请添加“/m”开关。
node-refprop.cpp
thermostate.cpp
win_delay_load_hook.cc
e:\users\work_dominic\node-refprop-master\src\node-refprop.cpp(97): warning C4996: 'v8::String::Utf8Value::Utf8Value':
被声明为已否决 [E:\Users\work_dominic\node-refprop-master\build\node-refprop.vcxproj]
c:\users\doomi.node-gyp\10.1.0\include\node\v8.h(2821): note: 参见“v8::String::Utf8Value::Utf8Value”的声明
e:\users\work_dominic\node-refprop-master\src\node-refprop.cpp(170): error C2661: “v8::Value::ToNumber”: 没有重载函数接受 0 个参数
[E:\Users\work_dominic\node-refprop-master\build\node-refprop.vcxproj]
e:\users\work_dominic\node-refprop-master\src\node-refprop.cpp(168): warning C4996: 'v8::String::Utf8Value::Utf8Value':
被声明为已否决 [E:\Users\work_dominic\node-refprop-master\build\node-refprop.vcxproj]
c:\users\doomi.node-gyp\10.1.0\include\node\v8.h(2821): note: 参见“v8::String::Utf8Value::Utf8Value”的声明
gyp ERR! build error
gyp ERR! stack Error: C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Users\doomi\AppData\Roaming\npm\node_modules\cnpm\node_modules\node-gyp\lib\build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:235:12)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\doomi\AppData\Roaming\npm\node_modules\cnpm\node_modules\npminstall\node-gyp-bin\node-gyp.js" "rebuild"
gyp ERR! cwd E:\Users\work_dominic\node-refprop-master
gyp ERR! node -v v10.1.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
[npminstall:runscript:error] refprop@1.0.0 scripts.install run "node-gyp rebuild" error: Error: Run "C:\Windows\system32\cmd.exe /d /s /c node-gyp rebuild" error, exit code 1
× Install fail! Error: post install error, please remove node_modules before retry!
Run "C:\Windows\system32\cmd.exe /d /s /c node-gyp rebuild" error, exit code 1
Error: post install error, please remove node_modules before retry!
Run "C:\Windows\system32\cmd.exe /d /s /c node-gyp rebuild" error, exit code 1
at ChildProcess.proc.on.code (C:\Users\doomi\AppData\Roaming\npm\node_modules\cnpm\node_modules\runscript\index.js:74:21)
at ChildProcess.emit (events.js:182:13)
at maybeClose (internal/child_process.js:957:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:246:5)
npminstall version: 3.20.2
npminstall args: C:\Program Files\nodejs\node.exe C:\Users\doomi\AppData\Roaming\npm\node_modules\cnpm\node_modules\npminstall\bin\install.js --fix-bug-versions --china --userconfig=C:\Users\doomi.cnpmrc --disturl=https://npm.taobao.org/mirrors/node --registry=https://registry.npm.taobao.org

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions