npm install bcrypt - no errors but a whole raft of warnings on windows 7 - node.js

OK, so all the brcypt issues on here seem to be node-gyp related, but after playing with bcrypt for a while I finally got it installing with no errors and node-gyp seems happy, but I am still getting quite a few warnings. It's obviously related to visual studio but I can't find anything about these specifically.
I'm on windows 7 x64 ultimate and have:
visual studio 2012 utlimate
visual studio 2013 ultimate
python 0.2.7.10
windows 7 x64 sdk with all updates
Win64OpenSSL-1_0_lt
I'm getting the following warnings:
D:\WebstormProjects\authapp>npm install --save bcrypt
npm WARN package.json authapp#1.0.0 No description
npm WARN package.json authapp#1.0.0 No README data
bcrypt#0.8.6 install D:\WebstormProjects\authapp\node_modules\bcrypt
node-gyp rebuild
D:\WebstormProjects\authapp\node_modules\bcrypt>if not defined npm_config_node_gyp (node "C:\Program Files\n
odejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node
"" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
blowfish.cc
bcrypt.cc
bcrypt_node.cc
**..\src\bcrypt.cc(232): warning C4267: '=' : conversion from 'size_t' to 'unsigned char', possible loss of d
ata [D:\WebstormProjects\authapp\node_modules\bcrypt\build\bcrypt_lib.vcxproj]
..\src\bcrypt_node.cc(76): warning C4244: 'argument' : conversion from 'ssize_t' to 'unsigned char', possib
le loss of data [D:\WebstormProjects\authapp\node_modules\bcrypt\build\bcrypt_lib.vcxproj]
..\src\bcrypt_node.cc(229): warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible los
s of data [D:\WebstormProjects\authapp\node_modules\bcrypt\build\bcrypt_lib.vcxproj]
..\src\bcrypt_node.cc(230): warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible los
s of data [D:\WebstormProjects\authapp\node_modules\bcrypt\build\bcrypt_lib.vcxproj]**
win_delay_load_hook.c
Creating library D:\WebstormProjects\authapp\node_modules\bcrypt\build\Release\bcrypt_lib.lib and obje
ct D:\WebstormProjects\authapp\node_modules\bcrypt\build\Release\bcrypt_lib.exp
Generating code
Finished generating code
bcrypt_lib.vcxproj -> D:\WebstormProjects\authapp\node_modules\bcrypt\build\Release\\bcrypt_lib.node
bcrypt#0.8.6 node_modules\bcrypt
├── bindings#1.2.1
└── nan#2.2.1
Does anyone have any ideas what's gone wrong here?
Thanks.

If you're on Windows, I recommend you use Bcrypt-NodeJS to avoid these errors if possible. You'll get about the same functionality, as far as I can tell.

Related

Unable to install NodeGui and React-NodeGUI in Windows10

Environment:
Windows 10
Python 2.7
node 12.8.1
VisualStudio 2017 with cc++ desktop development
Below is the logs which i got it while executig npm install
Logs
{
PS D:\ReactNodeGUI> git clone https://github.com/nodegui/nodegui-starter Cloning into 'nodegui-starter'...
remote: Enumerating objects: 47, done.
remote: Counting objects: 100% (47/47), done.
remote: Compressing objects: 100% (33/33), done.
Receiving objects: 100% (345/345), 275.78 KiB | 406.00 KiB/s, done.
Resolving deltas: 74% (176/236)used 16 (delta 14), pack-reused 298 esolving deltas: 0% (0/236)
Resolving deltas: 100% (236/236), done.
PS D:\ReactNodeGUI> cd .\nodegui-starter\ PS D:\ReactNodeGUI\nodegui-starter> npm install
> #nodegui/qode#2.1.0 postinstall D:\ReactNodeGUI\nodegui-starter\node_modules#nodegui\qode
> node install.js
Cached archive already exists at C:\Users\hp\AppData\Local\qode-nodejs\Cache\qode-win32-x64-v2.1.0.tar.gz. Skipping download....
Extracting C:\Users\hp\AppData\Local\qode-nodejs\Cache\qode-win32-x64-v2.1.0.tar.gz to D:\ReactNodeGUI\nodegui-starter\node_modules\#nodegui\qode\binaries ...
Qode was setup successfully at : D:\ReactNodeGUI\nodegui-starter\node_modules\#nodegui\qode\binaries
> #nodegui/nodegui#0.22.0 postinstall D:\ReactNodeGUI\nodegui-starter\node_modules\#nodegui\nodegui
> cross-env npm run setupqt && (node ./scripts/skip.js || npm run prebuild:install || npm run build:addon)
> #nodegui/nodegui#0.22.0 setupqt D:\ReactNodeGUI\nodegui-starter\node_modules\#nodegui\nodegui
> cross-env node ./scripts/setupMiniQt.js
Minimal Qt 5.14.1 setup:
Archive already exists at C:\Users\hp\AppData\Local\nodegui-mini-qt-nodejs\Cache\5.14.1-0-202001240957qttools-Windows-Windows_10-MSVC2017-Windows-Windows_10-X86_64.7z. Skipping download....
Extracting C:\Users\hp\AppData\Local\nodegui-mini-qt-nodejs\Cache\5.14.1-0-202001240957qttools-Windows-Windows_10-MSVC2017-Windows-Windows_10-X86_64.7z to D:\ReactNodeGUI\nodegui-starter\node_modules\#nodegui\nodegui\miniqt ...
Archive already exists at C:\Users\hp\AppData\Local\nodegui-mini-qt-nodejs\Cache\5.14.1-0-202001240957qtbase-Windows-Windows_10-MSVC2017-Windows-Windows_10-X86_64.7z. Skipping download....
Extracting C:\Users\hp\AppData\Local\nodegui-mini-qt-nodejs\Cache\5.14.1-0-202001240957qtbase-Windows-Windows_10-MSVC2017-Windows-Windows_10-X86_64.7z to D:\ReactNodeGUI\nodegui-starter\node_modules\#nodegui\nodegui\miniqt ...
Qt Tools for Minimal Qt: 5.14.1 installation was setup successfully. outDir: D:\ReactNodeGUI\nodegui-starter\node_modules\#nodegui\nodegui\miniqt
Qt Base for Minimal Qt: 5.14.1 installation was setup successfully. outDir: D:\ReactNodeGUI\nodegui-starter\node_modules\#nodegui\nodegui\miniqt
> #nodegui/nodegui#0.22.0 prebuild:install D:\ReactNodeGUI\nodegui-starter\node_modules\#nodegui\nodegui
> prebuild-install --backend=cmake-js --runtime=napi --verbose
prebuild-install info begin Prebuild-install version 5.3.4
prebuild-install info looking for cached prebuild # C:\Users\hp\AppData\Roaming\npm-cache\_prebuilds\e5c5c6-nodegui-v0.22.0-napi-v3-win32-x64.tar.gz
prebuild-install http request GET https://github.com/nodegui/nodegui/releases/download/v0.22.0/nodegui-v0.22.0-napi-v3-win32-x64.tar.gz
prebuild-install http 404 https://github.com/nodegui/nodegui/releases/download/v0.22.0/nodegui-v0.22.0-napi-v3-win32-x64.tar.gz
prebuild-install WARN install No prebuilt binaries found (target=3 runtime=napi arch=x64 libc= platform=win32)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! #nodegui/nodegui#0.22.0 prebuild:install: `prebuild-install --backend=cmake-js --runtime=napi --verbose`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the #nodegui/nodegui#0.22.0 prebuild:install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\hp\AppData\Roaming\npm-cache\_logs\2020-07-07T05_04_04_563Z-debug.log
> #nodegui/nodegui#0.22.0 build:addon D:\ReactNodeGUI\nodegui-starter\node_modules\#nodegui\nodegui
> cross-env CMAKE_BUILD_PARALLEL_LEVEL=8 cmake-js compile
[
'C:\\Program Files\\nodejs\\node.exe',
'D:\\ReactNodeGUI\\nodegui-starter\\node_modules\\cmake-js\\bin\\cmake-js',
'compile'
]
info TOOL Using Visual Studio 15 2017 Win64 generator.
info CMD CONFIGURE
info RUN cmake "D:\ReactNodeGUI\nodegui-starter\node_modules\#nodegui\nodegui" --no-warn-unused-cli -G"Visual Studio 15 2017 Win64" -DCMAKE_JS_VERSION="6.1.0" -DCMAKE_BUILD_TYPE="Release" -DCMAKE_RUNTIME_OUTPUT_DIRECTORY="D:\ReactNodeGUI\nodegui-starter\node_modules\#nodegui\nodegui\build" -DCMAKE_JS_INC="C:\Users\hp\.cmake-js\node-x64\v12.18.1\include\node;D:\ReactNodeGUI\nodegui-starter\node_modules\nan" -DCMAKE_JS_SRC="D:/ReactNodeGUI/nodegui-starter/node_modules/cmake-js/lib/cpp/win_delay_load_hook.cc" -DNODE_RUNTIME="node" -DNODE_RUNTIMEVERSION="12.18.1" -DNODE_ARCH="x64" -DCMAKE_JS_LIB="C:\Users\hp\.cmake-js\node-x64\v12.18.1\win-x64\node.lib" -DCMAKE_SHARED_LINKER_FLAGS="/DELAYLOAD:NODE.EXE"
Not searching for unused variables given on the command line.
-- Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.18362.
-- The C compiler identification is MSVC 19.16.27041.0
-- The CXX compiler identification is MSVC 19.16.27041.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using QT installation for nodegui_core QT_CMAKE_HOME_DIR:D:\ReactNodeGUI\nodegui-starter\node_modules\#nodegui\nodegui\miniqt\5.14.1\msvc2017_64\lib\cmake\Qt5
-- Using Qode installation for nodegui_core QODE_BINARY_DIR:D:\ReactNodeGUI\nodegui-starter\node_modules\#nodegui\qode\binaries
-- Configuring done
-- Generating done
-- Build files have been written to: D:/ReactNodeGUI/nodegui-starter/node_modules/#nodegui/nodegui/build
info CMD BUILD
info RUN cmake --build "D:\ReactNodeGUI\nodegui-starter\node_modules\#nodegui\nodegui\build" --config Release
Microsoft (R) Build Engine version 15.9.21+g9802d43bc3 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Checking Build System
Automatic MOC and UIC for target nodegui_core
Building Custom Rule D:/ReactNodeGUI/nodegui-starter/node_modules/#nodegui/nodegui/CMakeLists.txt
mocs_compilation.cpp
win_delay_load_hook.cc
main.cpp
nutils.cpp
integration.cpp
flexutils.cpp
flexlayout.cpp
flexitem.cpp
nodestyle.cpp
eventsmap.cpp
eventwidget.cpp
yogawidget.cpp
log.cpp
Utils.cpp
YGConfig.cpp
YGEnums.cpp
YGLayout.cpp
YGNode.cpp
YGNodePrint.cpp
YGStyle.cpp
YGValue.cpp
Yoga.cpp
event.cpp
D:\ReactNodeGUI\nodegui-starter\node_modules\#nodegui\nodegui\src\cpp\include\deps\yoga\Yoga.cpp(3220): warning C
4244: 'argument': conversion from 'double' to 'float', possible loss of data [D:\ReactNodeGUI\nodegui-starter\nod
e_modules\#nodegui\nodegui\build\nodegui_core.vcxproj]
D:\ReactNodeGUI\nodegui-starter\node_modules\#nodegui\nodegui\src\cpp\include\deps\yoga\Yoga.cpp(3257): warning C
4244: 'argument': conversion from 'double' to 'float', possible loss of data [D:\ReactNodeGUI\nodegui-starter\nod
e_modules\#nodegui\nodegui\build\nodegui_core.vcxproj]
D:\ReactNodeGUI\nodegui-starter\node_modules\#nodegui\nodegui\src\cpp\include\deps\yoga\Yoga.cpp(3257): warning C
4244: 'return': conversion from 'double' to 'float', possible loss of data [D:\ReactNodeGUI\nodegui-starter\node_
modules\#nodegui\nodegui\build\nodegui_core.vcxproj]
experiments.cpp
qbrush_wrap.cpp
qpen_wrap.cpp
qcolor_wrap.cpp
qapplication_wrap.cpp
qclipboard_wrap.cpp
qkeyevent_wrap.cpp
qmouseevent_wrap.cpp
qfontdatabase_wrap.cpp
qpicture_wrap.cpp
qpixmap_wrap.cpp
qicon_wrap.cpp
qfont_wrap.cpp
D:\ReactNodeGUI\nodegui-starter\node_modules\#nodegui\nodegui\src\cpp\lib\QtGui\QPixmap\qpixmap_wrap.cpp(78): war
ning C4267: 'argument': conversion from 'size_t' to 'uint', possible loss of data [D:\ReactNodeGUI\nodegui-starte
r\node_modules\#nodegui\nodegui\build\nodegui_core.vcxproj]
D:\ReactNodeGUI\nodegui-starter\node_modules\#nodegui\nodegui\src\cpp\lib\QtGui\QPixmap\qpixmap_wrap.cpp(81): war
ning C4267: 'argument': conversion from 'size_t' to 'uint', possible loss of data [D:\ReactNodeGUI\nodegui-starte
r\node_modules\#nodegui\nodegui\build\nodegui_core.vcxproj]
qcursor_wrap.cpp
qkeysequence_wrap.cpp
qmovie_wrap.cpp
D:\ReactNodeGUI\nodegui-starter\node_modules\#nodegui\nodegui\src\cpp\main.cpp : fatal error C1128: number of sec
tions exceeded object file format limit: compile with /bigobj [D:\ReactNodeGUI\nodegui-starter\node_modules\#node
gui\nodegui\build\nodegui_core.vcxproj]
D:\ReactNodeGUI\nodegui-starter\node_modules\#nodegui\nodegui\src\cpp\lib\QtGui\QMovie\qmovie_wrap.cpp(85): warni
ng C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [D:\ReactNodeGUI\nodegui-starter\n
ode_modules\#nodegui\nodegui\build\nodegui_core.vcxproj]
D:\ReactNodeGUI\nodegui-starter\node_modules\#nodegui\nodegui\src\cpp\lib\QtGui\QMovie\qmovie_wrap.cpp(171): warn
ing C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [D:\ReactNodeGUI\nodegui-starter\
node_modules\#nodegui\nodegui\build\nodegui_core.vcxproj]
cl : Command line error D8040: error creating or communicating with child process [D:\ReactNodeGUI\nodegui-starte
r\node_modules\#nodegui\nodegui\build\nodegui_core.vcxproj]
info REP Build has been failed, trying to do a full rebuild.
info CMD CLEAN
info RUN cmake -E remove_directory "D:\ReactNodeGUI\nodegui-starter\node_modules\#nodegui\nodegui\build"
info CMD CONFIGURE
info RUN cmake "D:\ReactNodeGUI\nodegui-starter\node_modules\#nodegui\nodegui" --no-warn-unused-cli -G"Visual Studio 15 2017 Win64" -DCMAKE_JS_VERSION="6.1.0" -DCMAKE_BUILD_TYPE="Release" -DCMAKE_RUNTIME_OUTPUT_DIRECTORY="D:\ReactNodeGUI\nodegui-starter\node_modules\#nodegui\nodegui\build" -DCMAKE_JS_INC="C:\Users\hp\.cmake-js\node-x64\v12.18.1\include\node;D:\ReactNodeGUI\nodegui-starter\node_modules\nan" -DCMAKE_JS_SRC="D:/ReactNodeGUI/nodegui-starter/node_modules/cmake-js/lib/cpp/win_delay_load_hook.cc" -DNODE_RUNTIME="node" -DNODE_RUNTIMEVERSION="12.18.1" -DNODE_ARCH="x64" -DCMAKE_JS_LIB="C:\Users\hp\.cmake-js\node-x64\v12.18.1\win-x64\node.lib" -DCMAKE_SHARED_LINKER_FLAGS="/DELAYLOAD:NODE.EXE"
Not searching for unused variables given on the command line.
-- Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.18362.
-- The C compiler identification is MSVC 19.16.27041.0
-- The CXX compiler identification is MSVC 19.16.27041.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using QT installation for nodegui_core QT_CMAKE_HOME_DIR:D:\ReactNodeGUI\nodegui-starter\node_modules\#nodegui\nodegui\miniqt\5.14.1\msvc2017_64\lib\cmake\Qt5
-- Using Qode installation for nodegui_core QODE_BINARY_DIR:D:\ReactNodeGUI\nodegui-starter\node_modules\#nodegui\qode\binaries
-- Configuring done
-- Generating done
-- Build files have been written to: D:/ReactNodeGUI/nodegui-starter/node_modules/#nodegui/nodegui/build
info CMD BUILD
info RUN cmake --build "D:\ReactNodeGUI\nodegui-starter\node_modules\#nodegui\nodegui\build" --config Release
Microsoft (R) Build Engine version 15.9.21+g9802d43bc3 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Checking Build System
Automatic MOC and UIC for target nodegui_core
Building Custom Rule D:/ReactNodeGUI/nodegui-starter/node_modules/#nodegui/nodegui/CMakeLists.txt
mocs_compilation.cpp
win_delay_load_hook.cc
main.cpp
nutils.cpp
integration.cpp
flexutils.cpp
flexlayout.cpp
flexitem.cpp
nodestyle.cpp
eventsmap.cpp
eventwidget.cpp
yogawidget.cpp
log.cpp
Utils.cpp
YGConfig.cpp
YGEnums.cpp
YGLayout.cpp
YGNode.cpp
YGNodePrint.cpp
YGStyle.cpp
YGValue.cpp
Yoga.cpp
event.cpp
D:\ReactNodeGUI\nodegui-starter\node_modules\#nodegui\nodegui\src\cpp\include\deps\yoga\Yoga.cpp(3220): warning C
4244: 'argument': conversion from 'double' to 'float', possible loss of data [D:\ReactNodeGUI\nodegui-starter\nod
e_modules\#nodegui\nodegui\build\nodegui_core.vcxproj]
D:\ReactNodeGUI\nodegui-starter\node_modules\#nodegui\nodegui\src\cpp\include\deps\yoga\Yoga.cpp(3257): warning C
4244: 'argument': conversion from 'double' to 'float', possible loss of data [D:\ReactNodeGUI\nodegui-starter\nod
e_modules\#nodegui\nodegui\build\nodegui_core.vcxproj]
D:\ReactNodeGUI\nodegui-starter\node_modules\#nodegui\nodegui\src\cpp\include\deps\yoga\Yoga.cpp(3257): warning C
4244: 'return': conversion from 'double' to 'float', possible loss of data [D:\ReactNodeGUI\nodegui-starter\node_
modules\#nodegui\nodegui\build\nodegui_core.vcxproj]
experiments.cpp
qbrush_wrap.cpp
qpen_wrap.cpp
qcolor_wrap.cpp
qapplication_wrap.cpp
qclipboard_wrap.cpp
qkeyevent_wrap.cpp
qmouseevent_wrap.cpp
qfontdatabase_wrap.cpp
qpicture_wrap.cpp
qpixmap_wrap.cpp
qicon_wrap.cpp
qfont_wrap.cpp
D:\ReactNodeGUI\nodegui-starter\node_modules\#nodegui\nodegui\src\cpp\lib\QtGui\QPixmap\qpixmap_wrap.cpp(78): war
ning C4267: 'argument': conversion from 'size_t' to 'uint', possible loss of data [D:\ReactNodeGUI\nodegui-starte
r\node_modules\#nodegui\nodegui\build\nodegui_core.vcxproj]
D:\ReactNodeGUI\nodegui-starter\node_modules\#nodegui\nodegui\src\cpp\lib\QtGui\QPixmap\qpixmap_wrap.cpp(81): war
ning C4267: 'argument': conversion from 'size_t' to 'uint', possible loss of data [D:\ReactNodeGUI\nodegui-starte
r\node_modules\#nodegui\nodegui\build\nodegui_core.vcxproj]
qcursor_wrap.cpp
qkeysequence_wrap.cpp
qmovie_wrap.cpp
D:\ReactNodeGUI\nodegui-starter\node_modules\#nodegui\nodegui\src\cpp\main.cpp : fatal error C1128: number of sec
tions exceeded object file format limit: compile with /bigobj [D:\ReactNodeGUI\nodegui-starter\node_modules\#node
gui\nodegui\build\nodegui_core.vcxproj]
D:\ReactNodeGUI\nodegui-starter\node_modules\#nodegui\nodegui\src\cpp\lib\QtGui\QMovie\qmovie_wrap.cpp(85): warni
ng C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [D:\ReactNodeGUI\nodegui-starter\n
ode_modules\#nodegui\nodegui\build\nodegui_core.vcxproj]
D:\ReactNodeGUI\nodegui-starter\node_modules\#nodegui\nodegui\src\cpp\lib\QtGui\QMovie\qmovie_wrap.cpp(171): warn
ing C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [D:\ReactNodeGUI\nodegui-starter\
node_modules\#nodegui\nodegui\build\nodegui_core.vcxproj]
cl : Command line error D8040: error creating or communicating with child process [D:\ReactNodeGUI\nodegui-starte
r\node_modules\#nodegui\nodegui\build\nodegui_core.vcxproj]
ERR! OMG Process terminated: 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! #nodegui/nodegui#0.22.0 build:addon: `cross-env CMAKE_BUILD_PARALLEL_LEVEL=8 cmake-js compile`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the #nodegui/nodegui#0.22.0 build:addon script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\hp\AppData\Roaming\npm-cache\_logs\2020-07-07T05_08_03_716Z-debug.log
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.13 (node_modules\watchpack-chokidar2\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#2.1.3 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! #nodegui/nodegui#0.22.0 postinstall: `cross-env npm run setupqt && (node ./scripts/skip.js || npm run prebuild:install || npm run build:addon)`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the #nodegui/nodegui#0.22.0 postinstall 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\hp\AppData\Roaming\npm-cache\_logs\2020-07-07T05_08_06_476Z-debug.log
PS D:\ReactNodeGUI\nodegui-starter> C:\Users\hp\AppData\Roaming\npm-cache\_logs\2020-07-07T05_08_06_476Z-debug.log
}
I got the same problem and here are what I did to resolve it, some steps may not be necessary but I am not sure which one is critical:
remove and reinstall node.js (with all recommended additional things that I previously did not install such as python, visual studio build tools 2017...)
install cmake from https://cmake.org/
add 'Desktop development with C++' to Visual studio 2019 (previously installed) according to this CMake: Visual Studio 15 2017 could not find any instance of Visual Studio
Then it worked! I think steps 2,3 are important.

bcrypt - windows 10 x64 build error

I have issue with bcrypt installation on windows 10 x64.
My installs:
node = 6.31
node-gyp = 3.4.0
npm = 3.10.3
python = 2.7.0
VSCommunity 2015
windows build tools
I have readed how to, with bcrypt package, based on node-gyp. I am really tired of fighting with this issue. I got error: (PS I tried with v0.8.6)
> bcrypt#0.8.6 install C:\Users\pi15463\www\BaaS\node_modules\bcrypt
> node-gyp rebuild
C:\Users\pi15463\www\BaaS\node_modules\bcrypt>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_mo dules\node-gyp\bin\node-gyp.js" rebuild ) else (node "" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
blowfish.cc
bcrypt.cc
bcrypt_node.cc
..\src\bcrypt.cc(232): warning C4267: '=': conversion from 'size_t' to 'unsigned char', possible loss of data [C:\Users\pi15463\www\BaaS\node_modules\bcrypt\bui ld\bcrypt_lib.vcxproj]
..\src\bcrypt_node.cc(76): warning C4244: 'argument': conversion from 'ssize_t' to 'unsigned char', possible loss of data [C:\Users\pi15463\www\BaaS\node_module s\bcrypt\build\bcrypt_lib.vcxproj]
..\src\bcrypt_node.cc(229): warning C4267: 'initializing': conversion from 'size _t' to 'int', possible loss of data [C:\Users\pi15463\www\BaaS\node_modules\bcry pt\build\bcrypt_lib.vcxproj]
..\src\bcrypt_node.cc(230): warning C4267: 'initializing': conversion from 'size _t' to 'int', possible loss of data [C:\Users\pi15463\www\BaaS\node_modules\bcry pt\build\bcrypt_lib.vcxproj]
win_delay_load_hook.c
C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\src\win_delay_loa d_hook.c(34): error C2373: '__pfnDliNotifyHook2': redefinition; different type m odifiers [C:\Users\pi15463\www\BaaS\node_modules\bcrypt\build\bcrypt_lib.vcxproj ]
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\delayimp.h(134) : note: see declaration of '__pfnDliNotifyHook2'
Like you see a bounch of warns and no files at all. I saw some similar problems, but every1 has different configuration, so I decided to create a new thread.
Why on Ubuntu everything works ok, and on windows always are problems...
Hate my corporate pc.
Please for hints, and best regards!
Uland
I had the same problem: windows10 pc and no way to get bcrypt installed.
I solved this by using bcryptjs (do not confuse it with bcrypt).
Basically bcryptjs does the same job as bcrypt but the former is written in pure js and has no cumbersome dependencies. The only downside is that it is 30% slower than bcrypt.
For me it worked right away.
here is the link to the relevant page on the npmjs website:

Building node contextify using Visual Studio 2013

I'm attempting to get "contextify" to build on my machine. It is a Windows 10 machine.
I am using Windows 10
I have Visual Studio 2013 Professional installed.
I have python 2.7.10, and it's in my PATH.
I have node 4.1.2 32 bit installed (I had previously tried with 64 bit, which is the default that the node website wanted me to download, but it appears to make no difference).
I've got no idea what the right sequence of steps should be, I don't know anything about node-gyp, npm etc, I'm just trying to build a project that has a dependency on contextify.
I've done a clone of the contextify repo from git hub and naively run
`npm install'. I'm using a Visual Studio command prompt (either VS2013 x64 Native Tools Command Prompt or VS2013 x86 Native Tools Command Prompt, makes no difference).
What I get is this:
d:\work\contextify>npm install
> contextify#0.1.14 install d:\work\contextify
> node-gyp rebuild
d:\work\contextify>if not defined npm_config_node_gyp (node "C:\Users\tomq\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
contextify.cc
d:\work\contextify\node_modules\nan\nan.h(263): error C2995: 'v8::Local<T> _NanEnsureLocal(v8::Local<T>)' : function te
mplate has already been defined [d:\work\contextify\build\contextify.vcxproj]
d:\work\contextify\node_modules\nan\nan.h(256) : see declaration of '_NanEnsureLocal'
d:\work\contextify\node_modules\nan\nan.h(661): error C3083: 'smalloc': the symbol to the left of a '::' must be a type
[d:\work\contextify\build\contextify.vcxproj]
d:\work\contextify\node_modules\nan\nan.h(661): error C2039: 'FreeCallback' : is not a member of 'node' [d:\work\contex
tify\build\contextify.vcxproj]
d:\work\contextify\node_modules\nan\nan.h(661): error C2061: syntax error : identifier 'FreeCallback' [d:\work\contexti
fy\build\contextify.vcxproj]
d:\work\contextify\node_modules\nan\nan.h(665): error C2065: 'callback' : undeclared identifier [d:\work\contextify\bui
ld\contextify.vcxproj]
d:\work\contextify\node_modules\nan\nan.h(665): error C2065: 'hint' : undeclared identifier [d:\work\contextify\build\c
ontextify.vcxproj]
d:\work\contextify\node_modules\nan\nan.h(672): error C2665: 'node::Buffer::New' : none of the 4 overloads could conver
t all the argument types [d:\work\contextify\build\contextify.vcxproj]
C:\Users\tomq\.node-gyp\4.1.2\include\node\node_buffer.h(43): could be 'v8::MaybeLocal<v8::Object> node::Buff
er::New(v8::Isolate *,char *,size_t)'
C:\Users\tomq\.node-gyp\4.1.2\include\node\node_buffer.h(31): or 'v8::MaybeLocal<v8::Object> node::Buff
er::New(v8::Isolate *,v8::Local<v8::String>,node::encoding)'
while trying to match the argument list '(v8::Isolate *, const char *, uint32_t)'
d:\work\contextify\node_modules\nan\nan.h(676): error C2664: 'v8::Local<v8::Object>::Local(const v8::Local<v8::Object>
&)' : cannot convert argument 1 from 'v8::MaybeLocal<v8::Object>' to 'const v8::Local<v8::Object> &' [d:\work\contextif
y\build\contextify.vcxproj]
Reason: cannot convert from 'v8::MaybeLocal<v8::Object>' to 'const v8::Local<v8::Object>'
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be cal
led
d:\work\contextify\node_modules\nan\nan.h(683): error C2039: 'Use' : is not a member of 'node::Buffer' [d:\work\context
ify\build\contextify.vcxproj]
d:\work\contextify\node_modules\nan\nan.h(683): error C3861: 'Use': identifier not found [d:\work\contextify\build\cont
extify.vcxproj]
I have read the Contextify Windows Install Guide, but it doesn't really help me. I have read many other posts as well.
Am I supposed to be able to get this to compile using Visual Studio 2013?
Thanks.
I've got same issue.
I've solved this problem.
Contextify is not supported in node 4.x.
So I've downgrade node to 0.10.x, then works fine.
Alyosha.

Node.js npm installing websocket fails

I am installing websocket through npm in Windows 7 64 bit. The websocket version is 1.0.8
I am getting a linking error even though I have Visual Studio 2010 and Python 2.7 :
C:\Windows\system32\node_modules\websocket>node "C:\Program Files (x86)\nodejs\n
ode_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" r
ebuild
validation.cc
C:\Users\User\.node-gyp\0.10.30\deps\v8\include\v8.h(184): warning C4506: no d
efinition for inline function 'v8::Persistent<T> v8::Persistent<T>::New(v8::Hand
le<T>)' [C:\Windows\system32\node_modules\websocket\build\validation.vcxproj]
with
[
T=v8::Object
]
LINK : fatal error LNK1104: cannot open file 'C:\Windows\system32\node_modules\w
ebsocket\build\Release\validation.node' [C:\Windows\system32\node_modules\websoc
ket\build\validation.vcxproj]
xor.cpp
C:\Users\User\.node-gyp\0.10.30\deps\v8\include\v8.h(179): warning C4506: no d
efinition for inline function 'v8::Persistent<T> v8::Persistent<T>::New(v8::Hand
le<T>)' [C:\Windows\system32\node_modules\websocket\build\xor.vcxproj]
with
[
T=v8::Object
]
LINK : fatal error LNK1104: cannot open file 'C:\Windows\system32\node_modules\w
ebsocket\build\Release\xor.node' [C:\Windows\system32\node_modules\websocket\bui
ld\xor.vcxproj]
gyp[websocket v1.0.8]
Native code compile failed!!
Please note that this module DOES NOT REQUIRE the native components
and will still work without them, though not quite as efficiently.
On Windows, native extensions require Visual Studio and Python.
On Unix, native extensions require Python, make and a C++ compiler.
Start npm with --websocket:verbose to show compilation output (if any).
websocket#1.0.8 node_modules\websocket
C:\Windows\system32>
Is there a way to skip this compilation stuff and just use this module right away ? Or someway to fix this error ?
PS: the command prompt was started with Admin rights.

Compilation Qt 4.7.3 under Windows x64 with VS 2008

I tried to compilation Qt 4.7.3 under Windows x64 with VS 2008.
Step by step:
Start Start Menu\Microsoft Visual Studio 2008\Visual Studio Remote Tools\Visual Studio 2008 x64 Win64 Command Prompt
Go to C:\Qt\4.7.3\
Type configure
Type nmake.
But I have compilation error:
qnetworkdiskcache.cpp
c:\qt\4.7.3\include\qtcore\private\../../../src/corelib/io/qiodevice_p.h(170) :
warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss
of data
c:\qt\4.7.3\include\qtcore\private\../../../src/corelib/io/qiodevice_p.h(170) :
warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss
of data
c:\qt\4.7.3\include\qtcore\private\../../../src/corelib/io/qiodevice_p.h(170) :
warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss
of data
access\qnetworkrequest.cpp(997) : warning C4996: 'sscanf': This function or vari
able may be unsafe. Consider using sscanf_s instead. To disable deprecation, use
_CRT_SECURE_NO_WARNINGS. See online help for details.
c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE\stdio.h(32
4) : see declaration of 'sscanf'
c:\Qt\4.7.3\src\network\tmp\moc\debug_shared\moc_qnetworkreplyimpl_p.cpp(99) : e
rror C2079: '_r' uses undefined class 'QSslConfiguration'
c:\Qt\4.7.3\src\network\tmp\moc\debug_shared\moc_qnetworkreplyimpl_p.cpp(99) : e
rror C3861: 'sslConfigurationImplementation': identifier not found
c:\Qt\4.7.3\src\network\tmp\moc\debug_shared\moc_qnetworkreplyimpl_p.cpp(100) :
error C2582: 'operator =' function is unavailable in 'QSslConfiguration'
c:\Qt\4.7.3\src\network\tmp\moc\debug_shared\moc_qnetworkreplyimpl_p.cpp(101) :
error C3861: 'setSslConfigurationImplementation': identifier not found
c:\Qt\4.7.3\src\network\tmp\moc\debug_shared\moc_qnetworkreplyimpl_p.cpp(102) :
error C3861: 'ignoreSslErrorsImplementation': identifier not found
NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 9.0\
VC\BIN\amd64\cl.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 9.0\
VC\BIN\amd64\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
I used nmake /I for compilation Qt. I compiled modules, what was needed me successful.
Not all modules of Qt are easily build-able in VS. The following configure parameters have worked for people in the past:
configure.exe -platform win32-msvc2008 -no-webkit -no-phonon -no-phonon-backend -no-script -no-scripttools -no-multimedia -no-qt3support -fast

Resources