You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pulsar.apache.org by GitBox <gi...@apache.org> on 2020/09/14 10:01:24 UTC

[GitHub] [pulsar-client-node] keyiis opened a new issue #122: npm install fails on win10

keyiis opened a new issue #122:
URL: https://github.com/apache/pulsar-client-node/issues/122


   I want inatall on win10 x64,but failed
   `PS D:\code\server> npm install pulsar-client -S
   
   > pulsar-client@1.2.0 install D:\code\server\node_modules\pulsar-client
   > node-pre-gyp install --fallback-to-build
   
   node-pre-gyp WARN Using request for node-pre-gyp https download 
   node-pre-gyp WARN Tried to download(404): https://pulsar.apache.org/docs/en/client-libraries-cpp/libpulsar-v1.2.0-node-v72-win32-x64.tar.gz 
   node-pre-gyp WARN Pre-built binaries not found for pulsar-client@1.2.0 and node@12.14.0 (node-v72 ABI, unknown) (falling back to source compile with node-gyp) 
   gyp: codezhidaoservernode_modulesnode-addon-apisrcnode_api.gyp not found (cwd: D:\code\server\node_modules\pulsar-client) while loading dependencies of binding.gyp while trying to load binding.gyp
   gyp ERR! configure error 
   gyp ERR! stack Error: `gyp` failed with exit code: 1
   gyp ERR! stack     at ChildProcess.onCpExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:351:16)
   gyp ERR! stack     at ChildProcess.emit (events.js:210:5)
   gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
   gyp ERR! System Windows_NT 10.0.18363
   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=D:\\code\\zhidao\\server\\node_modules\\pulsar-client\\build\\Release\\libpulsar.node" "--module_name=libpulsar" "--module_path=D:\\code\\zhidao\\server\\node_modules\\pulsar-client\\build\\Release" "--napi_version=5" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v72" "--python=C:\\Users\\Administrator\\.windows-build-tools\\python27\\python.exe"
   gyp ERR! cwd D:\code\server\node_modules\pulsar-client
   gyp ERR! node -v v12.14.0
   gyp ERR! node-gyp -v v5.0.5
   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=D:\code\server\node_modules\pulsar-client\build\Release\libpulsar.node --module_name=libpulsar --module_path=D:\code\server\node_modules\pulsar-client\build\Release --napi_version=5 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v72 --python=C:\Users\Administrator\.windows-build-tools\python27\python.exe' (1)
   node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (D:\code\zhidao\server\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
   node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:210:5)
   node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:1021:16)
   node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
   node-pre-gyp ERR! System Windows_NT 10.0.18363
   node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "D:\\code\\server\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build"
   node-pre-gyp ERR! cwd D:\code\server\node_modules\pulsar-client
   node-pre-gyp ERR! node -v v12.14.0
   node-pre-gyp ERR! node-pre-gyp -v v0.12.0
   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=D:\code\server\node_modules\pulsar-client\build\Release\libpulsar.node --module_name=libpulsar --module_path=D:\code\server\node_modules\pulsar-client\build\Release --napi_version=5 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v72 --python=C:\Users\Administrator\.windows-build-tools\python27\python.exe' (1)
   npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (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\nodemon\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! pulsar-client@1.2.0 install: `node-pre-gyp install --fallback-to-build`
   npm ERR! Exit status 1
   npm ERR!
   npm ERR! Failed at the pulsar-client@1.2.0 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\Administrator\AppData\Roaming\npm-cache\_logs\2020-09-14T09_39_54_031Z-debug.log`


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar-client-node] itsezc edited a comment on issue #122: npm install fails on win10

Posted by GitBox <gi...@apache.org>.
itsezc edited a comment on issue #122:
URL: https://github.com/apache/pulsar-client-node/issues/122#issuecomment-841869050


   This issue also exists on MacOS Big Sur, Intel.
   
   ```❯ npm install pulsar-client
   npm WARN deprecated node-pre-gyp@0.15.0: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @m
   apbox scoped package will recieve updates in the future
   npm ERR! code 1
   npm ERR! path /Users/chirub/Desktop/project/node_modules/pulsar-client
   npm ERR! command failed
   npm ERR! command sh -c node-pre-gyp install --fallback-to-build
   npm ERR! CC(target) Release/obj.target/nothing/../node-addon-api/nothing.o
   npm ERR!   LIBTOOL-STATIC Release/nothing.a
   npm ERR!   CXX(target) Release/obj.target/Pulsar/src/addon.o
   npm ERR! Failed to execute '/Users/chirub/.nvm/versions/node/v15.13.0/bin/node /Users/chirub/.nvm/versions/node/v15.13.0/lib/node_modules/npm/node
   _modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/chirub/Desktop/project/node_modules/pulsar-client/build/Releas
   e/libpulsar.node --module_name=libpulsar --module_path=/Users/chirub/Desktop/project/node_modules/pulsar-client/build/Release --napi_versi
   on=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v88' (1)
   npm ERR! node-pre-gyp info it worked if it ends with ok
   npm ERR! node-pre-gyp info using node-pre-gyp@1.0.4
   npm ERR! node-pre-gyp info using node@15.13.0 | darwin | x64
   npm ERR! node-pre-gyp info check checked for "/Users/chirub/Desktop/project/node_modules/pulsar-client/build/Release/libpulsar.node" (not 
   found)
   npm ERR! node-pre-gyp http GET https://pulsar.apache.org/docs/en/client-libraries-cpp/libpulsar-v1.3.0-node-v88-darwin-x64.tar.gz
   npm ERR! node-pre-gyp ERR! install response status 404 Not Found on https://pulsar.apache.org/docs/en/client-libraries-cpp/libpulsar-v1.3.0-node-v
   88-darwin-x64.tar.gz 
   npm ERR! node-pre-gyp WARN Pre-built binaries not installable for pulsar-client@1.3.0 and node@15.13.0 (node-v88 ABI, unknown) (falling back to so
   urce compile with node-gyp) 
   npm ERR! node-pre-gyp WARN Hit error response status 404 Not Found on https://pulsar.apache.org/docs/en/client-libraries-cpp/libpulsar-v1.3.0-node
   -v88-darwin-x64.tar.gz 
   npm ERR! gyp info it worked if it ends with ok
   npm ERR! gyp info using node-gyp@7.1.2
   npm ERR! gyp info using node@15.13.0 | darwin | x64
   npm ERR! gyp info ok 
   npm ERR! gyp info it worked if it ends with ok
   npm ERR! gyp info using node-gyp@7.1.2
   npm ERR! gyp info using node@15.13.0 | darwin | x64
   npm ERR! gyp info find Python using Python version 2.7.16 found at "/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/
   Contents/MacOS/Python"
   npm ERR! gyp info spawn /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
   npm ERR! gyp info spawn args [
   npm ERR! gyp info spawn args   '/Users/chirub/.nvm/versions/node/v15.13.0/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
   npm ERR! gyp info spawn args   'binding.gyp',
   npm ERR! gyp info spawn args   '-f',
   npm ERR! gyp info spawn args   'make',
   npm ERR! gyp info spawn args   '-I',
   npm ERR! gyp info spawn args   '-I',
   npm ERR! gyp info spawn args   '/Users/chirub/.nvm/versions/node/v15.13.0/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
   npm ERR! gyp info spawn args   '-I',
   npm ERR! gyp info spawn args   '/Users/chirub/Library/Caches/node-gyp/15.13.0/include/node/common.gypi',
   npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
   npm ERR! gyp info spawn args   '-Dvisibility=default',
   npm ERR! gyp info spawn args   '-Dnode_engine=v8',
   npm ERR! gyp info spawn args   '--depth=.',
   npm ERR! gyp info spawn args   '--no-parallel',
   npm ERR! gyp info spawn args   '--generator-output',
   npm ERR! gyp info spawn args   'build',
   npm ERR! gyp info spawn args   '-Goutput_dir=.'
   npm ERR! gyp info spawn args ]
   npm ERR! gyp info ok 
   npm ERR! gyp info it worked if it ends with ok
   npm ERR! gyp info using node-gyp@7.1.2
   npm ERR! gyp info using node@15.13.0 | darwin | x64
   npm ERR! gyp info spawn make
   npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
   npm ERR! warning: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: archive library: Release/nothing.a the table of contents is empty (no object file members in the library define global symbols)
   npm ERR! In file included from ../src/addon.cc:20:
   npm ERR! ../src/Message.h:24:10: fatal error: 'pulsar/c/message.h' file not found```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar-client-node] osbornm commented on issue #122: npm install fails on win10

Posted by GitBox <gi...@apache.org>.
osbornm commented on issue #122:
URL: https://github.com/apache/pulsar-client-node/issues/122#issuecomment-924397770


   @sijie What I want to do is be able to go into our node API project and `npm install pulsar-client`. So yes I would want released binaries for Windows.
   
   I'd like to have a clean experience, clone > npm install > npm start,  for our developers (both win and macOS). 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar-client-node] koshkarov commented on issue #122: npm install fails on win10

Posted by GitBox <gi...@apache.org>.
koshkarov commented on issue #122:
URL: https://github.com/apache/pulsar-client-node/issues/122#issuecomment-812907867


   This was the biggest reason why we decided not to use Apache Pulsar and favored Apache Kafka, as our whole team uses Windows laptops as dev machines. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar-client-node] itsezc removed a comment on issue #122: npm install fails on win10

Posted by GitBox <gi...@apache.org>.
itsezc removed a comment on issue #122:
URL: https://github.com/apache/pulsar-client-node/issues/122#issuecomment-841869050


   This issue also exists on MacOS Big Sur, Intel.
   
   ```❯ npm install pulsar-client
   npm WARN deprecated node-pre-gyp@0.15.0: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @m
   apbox scoped package will recieve updates in the future
   npm ERR! code 1
   npm ERR! path /Users/chirub/Desktop/project/node_modules/pulsar-client
   npm ERR! command failed
   npm ERR! command sh -c node-pre-gyp install --fallback-to-build
   npm ERR! CC(target) Release/obj.target/nothing/../node-addon-api/nothing.o
   npm ERR!   LIBTOOL-STATIC Release/nothing.a
   npm ERR!   CXX(target) Release/obj.target/Pulsar/src/addon.o
   npm ERR! Failed to execute '/Users/chirub/.nvm/versions/node/v15.13.0/bin/node /Users/chirub/.nvm/versions/node/v15.13.0/lib/node_modules/npm/node
   _modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/chirub/Desktop/project/node_modules/pulsar-client/build/Releas
   e/libpulsar.node --module_name=libpulsar --module_path=/Users/chirub/Desktop/project/node_modules/pulsar-client/build/Release --napi_versi
   on=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v88' (1)
   npm ERR! node-pre-gyp info it worked if it ends with ok
   npm ERR! node-pre-gyp info using node-pre-gyp@1.0.4
   npm ERR! node-pre-gyp info using node@15.13.0 | darwin | x64
   npm ERR! node-pre-gyp info check checked for "/Users/chirub/Desktop/project/node_modules/pulsar-client/build/Release/libpulsar.node" (not 
   found)
   npm ERR! node-pre-gyp http GET https://pulsar.apache.org/docs/en/client-libraries-cpp/libpulsar-v1.3.0-node-v88-darwin-x64.tar.gz
   npm ERR! node-pre-gyp ERR! install response status 404 Not Found on https://pulsar.apache.org/docs/en/client-libraries-cpp/libpulsar-v1.3.0-node-v
   88-darwin-x64.tar.gz 
   npm ERR! node-pre-gyp WARN Pre-built binaries not installable for pulsar-client@1.3.0 and node@15.13.0 (node-v88 ABI, unknown) (falling back to so
   urce compile with node-gyp) 
   npm ERR! node-pre-gyp WARN Hit error response status 404 Not Found on https://pulsar.apache.org/docs/en/client-libraries-cpp/libpulsar-v1.3.0-node
   -v88-darwin-x64.tar.gz 
   npm ERR! gyp info it worked if it ends with ok
   npm ERR! gyp info using node-gyp@7.1.2
   npm ERR! gyp info using node@15.13.0 | darwin | x64
   npm ERR! gyp info ok 
   npm ERR! gyp info it worked if it ends with ok
   npm ERR! gyp info using node-gyp@7.1.2
   npm ERR! gyp info using node@15.13.0 | darwin | x64
   npm ERR! gyp info find Python using Python version 2.7.16 found at "/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/
   Contents/MacOS/Python"
   npm ERR! gyp info spawn /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
   npm ERR! gyp info spawn args [
   npm ERR! gyp info spawn args   '/Users/chirub/.nvm/versions/node/v15.13.0/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
   npm ERR! gyp info spawn args   'binding.gyp',
   npm ERR! gyp info spawn args   '-f',
   npm ERR! gyp info spawn args   'make',
   npm ERR! gyp info spawn args   '-I',
   npm ERR! gyp info spawn args   '-I',
   npm ERR! gyp info spawn args   '/Users/chirub/.nvm/versions/node/v15.13.0/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
   npm ERR! gyp info spawn args   '-I',
   npm ERR! gyp info spawn args   '/Users/chirub/Library/Caches/node-gyp/15.13.0/include/node/common.gypi',
   npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
   npm ERR! gyp info spawn args   '-Dvisibility=default',
   npm ERR! gyp info spawn args   '-Dnode_engine=v8',
   npm ERR! gyp info spawn args   '--depth=.',
   npm ERR! gyp info spawn args   '--no-parallel',
   npm ERR! gyp info spawn args   '--generator-output',
   npm ERR! gyp info spawn args   'build',
   npm ERR! gyp info spawn args   '-Goutput_dir=.'
   npm ERR! gyp info spawn args ]
   npm ERR! gyp info ok 
   npm ERR! gyp info it worked if it ends with ok
   npm ERR! gyp info using node-gyp@7.1.2
   npm ERR! gyp info using node@15.13.0 | darwin | x64
   npm ERR! gyp info spawn make
   npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
   npm ERR! warning: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: archive library: Release/nothing.a the table of contents is empty (no object file members in the library define global symbols)
   npm ERR! In file included from ../src/addon.cc:20:
   npm ERR! ../src/Message.h:24:10: fatal error: 'pulsar/c/message.h' file not found```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar-client-node] osbornm edited a comment on issue #122: npm install fails on win10

Posted by GitBox <gi...@apache.org>.
osbornm edited a comment on issue #122:
URL: https://github.com/apache/pulsar-client-node/issues/122#issuecomment-923303426


   Can we get an update on this from a maintainer? With the node client ever work on windows? This might be a show stopper for us 😢 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar-client-node] munir131 commented on issue #122: npm install fails on win10

Posted by GitBox <gi...@apache.org>.
munir131 commented on issue #122:
URL: https://github.com/apache/pulsar-client-node/issues/122#issuecomment-735627330


   @massakam It is even failing on Linux too - https://github.com/streamnative/pulsar-client-node/issues/81


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar-client-node] keyiis commented on issue #122: npm install fails on win10

Posted by GitBox <gi...@apache.org>.
keyiis commented on issue #122:
URL: https://github.com/apache/pulsar-client-node/issues/122#issuecomment-693904398


   Do you have a plan to solve the problem?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar-client-node] massakam commented on issue #122: npm install fails on win10

Posted by GitBox <gi...@apache.org>.
massakam commented on issue #122:
URL: https://github.com/apache/pulsar-client-node/issues/122#issuecomment-694653352


   The Node.js client library does not support Windows. At least we haven't verified that it can be installed and built on Windows.
   
   This npm package depends on Pulsar C++ client library, so the important thing is whether the C++ client works on Windows. According to Pulsar's official documentation, the C++ client only supports Linux and MacOS.
   https://pulsar.apache.org/docs/en/client-libraries-cpp/
   
   However, the README describes how to build the C++ client on Windows. I have never tried this.
   https://github.com/apache/pulsar/blob/master/pulsar-client-cpp/README.md


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar-client-node] itsezc commented on issue #122: npm install fails on win10

Posted by GitBox <gi...@apache.org>.
itsezc commented on issue #122:
URL: https://github.com/apache/pulsar-client-node/issues/122#issuecomment-841869050


   This issue also exists on MacOS Big Sur, Intel.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar-client-node] sijie commented on issue #122: npm install fails on win10

Posted by GitBox <gi...@apache.org>.
sijie commented on issue #122:
URL: https://github.com/apache/pulsar-client-node/issues/122#issuecomment-924372757


   @osbornm I believe we are able to build the nodejs client after this PR: https://github.com/apache/pulsar-client-node/pull/169
   
   Have you tried to build the client from the latest master? Or are you looking for a released binary for Windows?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar-client-node] gaoran10 edited a comment on issue #122: npm install fails on win10

Posted by GitBox <gi...@apache.org>.
gaoran10 edited a comment on issue #122:
URL: https://github.com/apache/pulsar-client-node/issues/122#issuecomment-924534854


   @osbornm Could you build the NodeJS client follow this README file https://github.com/apache/pulsar-client-node? I think the key point is to build the CPP client on windows first.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar-client-node] massakam commented on issue #122: npm install fails on win10

Posted by GitBox <gi...@apache.org>.
massakam commented on issue #122:
URL: https://github.com/apache/pulsar-client-node/issues/122#issuecomment-929050029


   > IMHO, the solution is to have this project publish the c++ binaries. You can see from the following output that npm/node-gyp is trying to fetch the prebuilt.
   
   Unfortunately, there are no plans to publish pre-built C++ binaries at this time. Building and publishing binaries for different operating systems, NODE_MODULE_VERSIONs, and instruction set architectures can be costly.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar-client-node] itsezc commented on issue #122: npm install fails on win10

Posted by GitBox <gi...@apache.org>.
itsezc commented on issue #122:
URL: https://github.com/apache/pulsar-client-node/issues/122#issuecomment-841869050


   This issue also exists on MacOS Big Sur, Intel.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar-client-node] itsezc removed a comment on issue #122: npm install fails on win10

Posted by GitBox <gi...@apache.org>.
itsezc removed a comment on issue #122:
URL: https://github.com/apache/pulsar-client-node/issues/122#issuecomment-841869050


   This issue also exists on MacOS Big Sur, Intel.
   
   ```❯ npm install pulsar-client
   npm WARN deprecated node-pre-gyp@0.15.0: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @m
   apbox scoped package will recieve updates in the future
   npm ERR! code 1
   npm ERR! path /Users/chirub/Desktop/project/node_modules/pulsar-client
   npm ERR! command failed
   npm ERR! command sh -c node-pre-gyp install --fallback-to-build
   npm ERR! CC(target) Release/obj.target/nothing/../node-addon-api/nothing.o
   npm ERR!   LIBTOOL-STATIC Release/nothing.a
   npm ERR!   CXX(target) Release/obj.target/Pulsar/src/addon.o
   npm ERR! Failed to execute '/Users/chirub/.nvm/versions/node/v15.13.0/bin/node /Users/chirub/.nvm/versions/node/v15.13.0/lib/node_modules/npm/node
   _modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/chirub/Desktop/project/node_modules/pulsar-client/build/Releas
   e/libpulsar.node --module_name=libpulsar --module_path=/Users/chirub/Desktop/project/node_modules/pulsar-client/build/Release --napi_versi
   on=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v88' (1)
   npm ERR! node-pre-gyp info it worked if it ends with ok
   npm ERR! node-pre-gyp info using node-pre-gyp@1.0.4
   npm ERR! node-pre-gyp info using node@15.13.0 | darwin | x64
   npm ERR! node-pre-gyp info check checked for "/Users/chirub/Desktop/project/node_modules/pulsar-client/build/Release/libpulsar.node" (not 
   found)
   npm ERR! node-pre-gyp http GET https://pulsar.apache.org/docs/en/client-libraries-cpp/libpulsar-v1.3.0-node-v88-darwin-x64.tar.gz
   npm ERR! node-pre-gyp ERR! install response status 404 Not Found on https://pulsar.apache.org/docs/en/client-libraries-cpp/libpulsar-v1.3.0-node-v
   88-darwin-x64.tar.gz 
   npm ERR! node-pre-gyp WARN Pre-built binaries not installable for pulsar-client@1.3.0 and node@15.13.0 (node-v88 ABI, unknown) (falling back to so
   urce compile with node-gyp) 
   npm ERR! node-pre-gyp WARN Hit error response status 404 Not Found on https://pulsar.apache.org/docs/en/client-libraries-cpp/libpulsar-v1.3.0-node
   -v88-darwin-x64.tar.gz 
   npm ERR! gyp info it worked if it ends with ok
   npm ERR! gyp info using node-gyp@7.1.2
   npm ERR! gyp info using node@15.13.0 | darwin | x64
   npm ERR! gyp info ok 
   npm ERR! gyp info it worked if it ends with ok
   npm ERR! gyp info using node-gyp@7.1.2
   npm ERR! gyp info using node@15.13.0 | darwin | x64
   npm ERR! gyp info find Python using Python version 2.7.16 found at "/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/
   Contents/MacOS/Python"
   npm ERR! gyp info spawn /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
   npm ERR! gyp info spawn args [
   npm ERR! gyp info spawn args   '/Users/chirub/.nvm/versions/node/v15.13.0/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
   npm ERR! gyp info spawn args   'binding.gyp',
   npm ERR! gyp info spawn args   '-f',
   npm ERR! gyp info spawn args   'make',
   npm ERR! gyp info spawn args   '-I',
   npm ERR! gyp info spawn args   '-I',
   npm ERR! gyp info spawn args   '/Users/chirub/.nvm/versions/node/v15.13.0/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
   npm ERR! gyp info spawn args   '-I',
   npm ERR! gyp info spawn args   '/Users/chirub/Library/Caches/node-gyp/15.13.0/include/node/common.gypi',
   npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
   npm ERR! gyp info spawn args   '-Dvisibility=default',
   npm ERR! gyp info spawn args   '-Dnode_engine=v8',
   npm ERR! gyp info spawn args   '--depth=.',
   npm ERR! gyp info spawn args   '--no-parallel',
   npm ERR! gyp info spawn args   '--generator-output',
   npm ERR! gyp info spawn args   'build',
   npm ERR! gyp info spawn args   '-Goutput_dir=.'
   npm ERR! gyp info spawn args ]
   npm ERR! gyp info ok 
   npm ERR! gyp info it worked if it ends with ok
   npm ERR! gyp info using node-gyp@7.1.2
   npm ERR! gyp info using node@15.13.0 | darwin | x64
   npm ERR! gyp info spawn make
   npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
   npm ERR! warning: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: archive library: Release/nothing.a the table of contents is empty (no object file members in the library define global symbols)
   npm ERR! In file included from ../src/addon.cc:20:
   npm ERR! ../src/Message.h:24:10: fatal error: 'pulsar/c/message.h' file not found```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar-client-node] gaoran10 commented on issue #122: npm install fails on win10

Posted by GitBox <gi...@apache.org>.
gaoran10 commented on issue #122:
URL: https://github.com/apache/pulsar-client-node/issues/122#issuecomment-924534854


   @osbornm Could you build the NodeJS client follow this README file https://github.com/apache/pulsar-client-node. I think the key point is to build the CPP client first.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar-client-node] massakam commented on issue #122: npm install fails on win10

Posted by GitBox <gi...@apache.org>.
massakam commented on issue #122:
URL: https://github.com/apache/pulsar-client-node/issues/122#issuecomment-929050029


   > IMHO, the solution is to have this project publish the c++ binaries. You can see from the following output that npm/node-gyp is trying to fetch the prebuilt.
   
   Unfortunately, there are no plans to publish pre-built C++ binaries at this time. Building and publishing binaries for different operating systems, NODE_MODULE_VERSIONs, and instruction set architectures can be costly.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar-client-node] itsezc edited a comment on issue #122: npm install fails on win10

Posted by GitBox <gi...@apache.org>.
itsezc edited a comment on issue #122:
URL: https://github.com/apache/pulsar-client-node/issues/122#issuecomment-841869050


   This issue also exists on MacOS Big Sur, Intel.
   
   ```❯ npm install pulsar-client
   npm WARN deprecated node-pre-gyp@0.15.0: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @m
   apbox scoped package will recieve updates in the future
   npm ERR! code 1
   npm ERR! path /Users/chirub/Desktop/project/node_modules/pulsar-client
   npm ERR! command failed
   npm ERR! command sh -c node-pre-gyp install --fallback-to-build
   npm ERR! CC(target) Release/obj.target/nothing/../node-addon-api/nothing.o
   npm ERR!   LIBTOOL-STATIC Release/nothing.a
   npm ERR!   CXX(target) Release/obj.target/Pulsar/src/addon.o
   npm ERR! Failed to execute '/Users/chirub/.nvm/versions/node/v15.13.0/bin/node /Users/chirub/.nvm/versions/node/v15.13.0/lib/node_modules/npm/node
   _modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/chirub/Desktop/project/node_modules/pulsar-client/build/Releas
   e/libpulsar.node --module_name=libpulsar --module_path=/Users/chirub/Desktop/project/node_modules/pulsar-client/build/Release --napi_versi
   on=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v88' (1)
   npm ERR! node-pre-gyp info it worked if it ends with ok
   npm ERR! node-pre-gyp info using node-pre-gyp@1.0.4
   npm ERR! node-pre-gyp info using node@15.13.0 | darwin | x64
   npm ERR! node-pre-gyp info check checked for "/Users/chirub/Desktop/project/node_modules/pulsar-client/build/Release/libpulsar.node" (not 
   found)
   npm ERR! node-pre-gyp http GET https://pulsar.apache.org/docs/en/client-libraries-cpp/libpulsar-v1.3.0-node-v88-darwin-x64.tar.gz
   npm ERR! node-pre-gyp ERR! install response status 404 Not Found on https://pulsar.apache.org/docs/en/client-libraries-cpp/libpulsar-v1.3.0-node-v
   88-darwin-x64.tar.gz 
   npm ERR! node-pre-gyp WARN Pre-built binaries not installable for pulsar-client@1.3.0 and node@15.13.0 (node-v88 ABI, unknown) (falling back to so
   urce compile with node-gyp) 
   npm ERR! node-pre-gyp WARN Hit error response status 404 Not Found on https://pulsar.apache.org/docs/en/client-libraries-cpp/libpulsar-v1.3.0-node
   -v88-darwin-x64.tar.gz 
   npm ERR! gyp info it worked if it ends with ok
   npm ERR! gyp info using node-gyp@7.1.2
   npm ERR! gyp info using node@15.13.0 | darwin | x64
   npm ERR! gyp info ok 
   npm ERR! gyp info it worked if it ends with ok
   npm ERR! gyp info using node-gyp@7.1.2
   npm ERR! gyp info using node@15.13.0 | darwin | x64
   npm ERR! gyp info find Python using Python version 2.7.16 found at "/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/
   Contents/MacOS/Python"
   npm ERR! gyp info spawn /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
   npm ERR! gyp info spawn args [
   npm ERR! gyp info spawn args   '/Users/chirub/.nvm/versions/node/v15.13.0/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
   npm ERR! gyp info spawn args   'binding.gyp',
   npm ERR! gyp info spawn args   '-f',
   npm ERR! gyp info spawn args   'make',
   npm ERR! gyp info spawn args   '-I',
   npm ERR! gyp info spawn args   '-I',
   npm ERR! gyp info spawn args   '/Users/chirub/.nvm/versions/node/v15.13.0/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
   npm ERR! gyp info spawn args   '-I',
   npm ERR! gyp info spawn args   '/Users/chirub/Library/Caches/node-gyp/15.13.0/include/node/common.gypi',
   npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
   npm ERR! gyp info spawn args   '-Dvisibility=default',
   npm ERR! gyp info spawn args   '-Dnode_engine=v8',
   npm ERR! gyp info spawn args   '--depth=.',
   npm ERR! gyp info spawn args   '--no-parallel',
   npm ERR! gyp info spawn args   '--generator-output',
   npm ERR! gyp info spawn args   'build',
   npm ERR! gyp info spawn args   '-Goutput_dir=.'
   npm ERR! gyp info spawn args ]
   npm ERR! gyp info ok 
   npm ERR! gyp info it worked if it ends with ok
   npm ERR! gyp info using node-gyp@7.1.2
   npm ERR! gyp info using node@15.13.0 | darwin | x64
   npm ERR! gyp info spawn make
   npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
   npm ERR! warning: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: archive library: Release/nothing.a the table of contents is empty (no object file members in the library define global symbols)
   npm ERR! In file included from ../src/addon.cc:20:
   npm ERR! ../src/Message.h:24:10: fatal error: 'pulsar/c/message.h' file not found```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar-client-node] osbornm commented on issue #122: npm install fails on win10

Posted by GitBox <gi...@apache.org>.
osbornm commented on issue #122:
URL: https://github.com/apache/pulsar-client-node/issues/122#issuecomment-924998580


   @gaoran10 I can and have got the node client to build local after pulling down the c++ library building and setting the ENV.
   
   This is tangential to the problem I have though. I want to be able to go into my own node project, say an API I am building, install the node client via npm ([`npm install pulsar-client`](https://pulsar.apache.org/docs/en/next/client-libraries-node/#installation-using-npm)), make some changes to the API to produce messages, commit to my project, and then be able to have another developer pull down that project on a windows machine and simply run `npm install` to restore packages and not have to jump through a bunch of hoops (cloning repositories and building c++ projects). 
   
   IMHO, the solution is to have this project publish the c++ binaries. You can see from the following output that npm/node-gyp is trying to fetch the prebuilt.
   
   ```
   node-pre-gyp WARN Using request for node-pre-gyp https download
   node-pre-gyp WARN Tried to download(404): https://pulsar.apache.org/docs/en/client-libraries-cpp/libpulsar-v1.3.1-node-v83-win32-x64.tar.gz
   node-pre-gyp WARN Pre-built binaries not found for pulsar-client@1.3.1 and node@14.17.3 (node-v83 ABI, unknown) (falling back to source compile with node-gyp)
   ```
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar-client-node] osbornm commented on issue #122: npm install fails on win10

Posted by GitBox <gi...@apache.org>.
osbornm commented on issue #122:
URL: https://github.com/apache/pulsar-client-node/issues/122#issuecomment-923303426


   Can we get an update on this from a maintainer? With the node client ever work on windows? This would be a show stopper for us :( 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar-client-node] gaoran10 edited a comment on issue #122: npm install fails on win10

Posted by GitBox <gi...@apache.org>.
gaoran10 edited a comment on issue #122:
URL: https://github.com/apache/pulsar-client-node/issues/122#issuecomment-924534854


   @osbornm Could you build the NodeJS client follow this README file https://github.com/apache/pulsar-client-node? I think the key point is to build the CPP client first.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar-client-node] osbornm edited a comment on issue #122: npm install fails on win10

Posted by GitBox <gi...@apache.org>.
osbornm edited a comment on issue #122:
URL: https://github.com/apache/pulsar-client-node/issues/122#issuecomment-923303426


   Can we get an update on this from a maintainer? Will the node client ever work on windows? This might be a show stopper for us 😢 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org