[
https://issues.apache.org/jira/browse/AMBARI-19801?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15847741#comment-15847741
]
Jeff Saremi commented on AMBARI-19801:
--------------------------------------
I investigated this further. The error comes from
error Failed at the [email protected] install script 'node-gyp rebuild'
After researching this further, I came across this article:
https://github.com/nodejs/node-gyp/issues/972
Which states that the minimum version of NPM which resolved this issue is
2.15.9 and not the one recommended by the Ambari team
I fixed this and got passed this problem.
Of course I still have issues with other modules which I will create separate
bugs for
> Build fails for Ambari Web 2.4.2.0.0 on Windows
> -----------------------------------------------
>
> Key: AMBARI-19801
> URL: https://issues.apache.org/jira/browse/AMBARI-19801
> Project: Ambari
> Issue Type: Bug
> Components: ambari-web
> Affects Versions: 2.4.2
> Environment: Windows 10
> Reporter: Jeff Saremi
> Labels: build, newbie, windows
>
> build fails on ambari-web:
> [INFO] Ambari Main ........................................ SUCCESS [ 2.940
> s]
> [INFO] Apache Ambari Project POM .......................... SUCCESS [ 0.044
> s]
> [INFO] Ambari Web ......................................... FAILURE [ 51.552
> s]
> D:\Users\jesaremi\Downloads\apache-ambari-2.4.2-src\ambari-web\node_modules\karma\node_modules\socket.io\node_modules\socket.io-client\node_modules\ws>if
> not defined npm_config_node_gyp (node
> "C:\Users\jesaremi\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.
> bufferutil.cc
> ..\src\bufferutil.cc(118): warning C4506: no definition for inline function
> 'v8::Persistent<v8::Object>
> v8::Persistent<v8::Object>::New(v8::Handle<v8::Object>)'
> [D:\Users\jesaremi\Downloads\apache-ambari-2.4.2-src\ambari-web\node_modules\karma\node_modules\socket.io\node_modules\socket.io-client\node_modules\ws\build\bufferutil.vcxproj]
> win_delay_load_hook.c
> C:\Users\jesaremi\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\src\win_delay_load_hook.c(34):
> error C2373: '__pfnDliNotifyHook2': redefinition; different type modifiers
> [D:\Users\jesaremi\Downloads\apache-ambari-2.4.2-src\ambari-web\node_modules\karma\node_modules\socket.io\node_modules\socket.io-client\node_modules\ws\build\bufferutil.vcxproj]
> C:\Program Files (x86)\Microsoft Visual Studio
> 14.0\VC\include\delayimp.h(134): note: see declaration of
> '__pfnDliNotifyHook2'
> validation.cc
> ..\src\validation.cc(146): warning C4506: no definition for inline function
> 'v8::Persistent<v8::Object>
> v8::Persistent<v8::Object>::New(v8::Handle<v8::Object>)'
> [D:\Users\jesaremi\Downloads\apache-ambari-2.4.2-src\ambari-web\node_modules\karma\node_modules\socket.io\node_modules\socket.io-client\node_modules\ws\build\validation.vcxproj]
> win_delay_load_hook.c
> C:\Users\jesaremi\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\src\win_delay_load_hook.c(34):
> error C2373: '__pfnDliNotifyHook2': redefinition; different type modifiers
> [D:\Users\jesaremi\Downloads\apache-ambari-2.4.2-src\ambari-web\node_modules\karma\node_modules\socket.io\node_modules\socket.io-client\node_modules\ws\build\validation.vcxproj]
> C:\Program Files (x86)\Microsoft Visual Studio
> 14.0\VC\include\delayimp.h(134): note: see declaration of
> '__pfnDliNotifyHook2'
> My Environment:
> VisualStudio 2015 - Have tried this using an x64 and an x86 command prompt.
> they both fail
> node --version
> v0.10.44
> npm --version
> 2.15.1
> brunch --version
> 1.7.20
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)