Skip to content
This repository has been archived by the owner on Jan 31, 2023. It is now read-only.

Failed to activate #1124

Closed
donlovett opened this issue Jul 4, 2019 · 41 comments
Closed

Failed to activate #1124

donlovett opened this issue Jul 4, 2019 · 41 comments

Comments

@donlovett
Copy link

Issue Type: Bug

From Gui Search for Extension
IBM Blockchain Platform

Error appears at end of installation

Failed to activate extension: Failed to execute command "npm" with arguments "rebuild, grpc, --target=4.2.5, --runtime=electron, --dist-url=https://atom.io/download/electron, --update-binary, --fallback-to-build, --target_arch=x64" return code 243

Extension version: 1.0.4
VS Code version: Code 1.36.0 (0f3794b38477eea13fb47fbe15a42798e6129338, 2019-07-03T13:20:56.241Z)
OS version: Linux x64 4.18.0-25-generic snap

System Info
Item Value
CPUs Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz (1 x 2807)
GPU Status 2d_canvas: unavailable_software
flash_3d: disabled_software
flash_stage3d: disabled_software
flash_stage3d_baseline: disabled_software
gpu_compositing: disabled_software
multiple_raster_threads: disabled_off
native_gpu_memory_buffers: disabled_software
oop_rasterization: disabled_off
protected_video_decode: disabled_off
rasterization: disabled_software
skia_deferred_display_list: disabled_off
skia_renderer: disabled_off
surface_synchronization: enabled_on
video_decode: disabled_software
viz_display_compositor: disabled_off
webgl: unavailable_software
webgl2: unavailable_software
Load (avg) 5, 3, 2
Memory (System) 4.37GB (0.15GB free)
Process Argv
Screen Reader no
VM 100%
@cazfletch
Copy link
Contributor

Where there any more errors in the log from the output of running that command?

@urdarinda
Copy link

I get the error
rror requiring dependency: The gRPC binary module was not installed. This may be fixed by running "npm rebuild"
Original error: Cannot find module '/home/urdarinda/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.4/node_modules/grpc/src/node/extension_binary/node-v69-linux-x64-glibc/grpc_node.node'

Basically, it is not able to find v69 for node, What I have is v67. How do I solve this?

@cazfletch
Copy link
Contributor

cazfletch commented Jul 5, 2019 via email

@urdarinda
Copy link

What happens if you close and open vscode?

On Fri, 5 Jul 2019 at 17:36, Jatin Rungta @.***> wrote: I get the error rror requiring dependency: The gRPC binary module was not installed. This may be fixed by running "npm rebuild" Original error: Cannot find module '/home/urdarinda/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.4/node_modules/grpc/src/node/extension_binary/node-v69-linux-x64-glibc/grpc_node.node' Basically, it is not able to find v69 for node, What I have is v67. How do I solve this? — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#1124?email_source=notifications&email_token=AFP2AMPFDSRQR24S5WMECE3P55Z7VA5CNFSM4H6AHHRKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZJ5QKQ#issuecomment-508811306>, or mute the thread https://github.com/notifications/unsubscribe-auth/AFP2AMPLSJKGVNPFLT62TODP55Z7VANCNFSM4H6AHHRA .

Same thing happens. Is this because of my compiler? I have gcc 8 and it seems that grpc 1.17 has some issues with that and only on grpc 1.20+ it became compatible with gcc8. I have yet to find a workaround for buillding it on gcc8

@cazfletch
Copy link
Contributor

cazfletch commented Jul 6, 2019 via email

@cazfletch
Copy link
Contributor

this is now fixed in version 1.0.5 so closing

@jpenna
Copy link

jpenna commented Jul 18, 2019

I am still getting it:

[7/18/2019 1:06:19 PM] [IMPORTANT] Log files can be found by running the `Developer: Open Logs Folder` command from the palette

[7/18/2019 1:06:19 PM] [INFO] Starting IBM Blockchain Platform Extension
[7/18/2019 1:06:19 PM] [INFO] Attempting to require dependency: grpc
[7/18/2019 1:06:19 PM] [INFO] Error requiring dependency: Failed to load gRPC binary module because it was not installed for the current system
Expected directory: node-v69-linux-x64-glibc
Found: [node-v57-linux-x64-glibc, node-v64-linux-x64-glibc, node-v72-linux-x64-glibc]
This problem can often be fixed by running "npm rebuild" on the current system
Original error: Cannot find module '/home/juliano/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.5/node_modules/grpc/src/node/extension_binary/node-v69-linux-x64-glibc/grpc_node.node'
[7/18/2019 1:06:19 PM] [INFO] Updating native node modules
[7/18/2019 1:06:19 PM] [INFO] Rebuilding native node modules
[7/18/2019 1:06:19 PM] [ERROR] Could not rebuild native dependencies spawn npm ENOENT. Please ensure that you have node and npm installed
[7/18/2019 1:06:19 PM] [ERROR] Failed to activate extension: Error: spawn npm ENOENT

I installed npm 8, 10 and 12. You are requesting v69, and I have v57, v64 and v72.
I went to the plugin folder and ran npm install and npm rebuild, reinstalled the plugin, etc.

By the way, I am using Ubuntu 19.


I could fix it by changing the dependency in the plugin's package.json to use node-v57-linux-x64-glibc instead of node-v69-linux-x64-glibc. Then it ran fine.

@InSuperposition
Copy link

InSuperposition commented Sep 1, 2019

The issue still remains. I'm using macOS Mojave and nodenv for my node installation.
This path to binary is listed as unkown below, node-v69-darwin-x64-unknown

[9/1/2019 4:00:56 PM] [INFO] Starting IBM Blockchain Platform Extension
[9/1/2019 4:00:56 PM] [INFO] Attempting to require dependency: grpc
[9/1/2019 4:00:56 PM] [INFO] Error requiring dependency: The gRPC binary module was not installed. This may be fixed by running "npm rebuild"
Original error: Cannot find module '/Users/fgalloway/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.8/node_modules/grpc/src/node/extension_binary/node-v69-darwin-x64-unknown/grpc_node.node'
[9/1/2019 4:00:57 PM] [INFO] Updating native node modules
[9/1/2019 4:00:57 PM] [INFO] Rebuilding native node modules
[9/1/2019 4:00:57 PM] [ERROR] Could not rebuild native dependencies spawn npm ENOENT. Please ensure that you have node and npm installed
[9/1/2019 4:00:57 PM] [ERROR] Failed to activate extension: Error: spawn npm ENOENT

@cazfletch
Copy link
Contributor

Hi @InSuperposition it looks like the extension can't find npm. From the terminal inside vscode what happens if you run npm --version?

@InSuperposition
Copy link

Thanks for the quick response, the output for npm --version is 6.9.0, node version is v10.16.0

@cazfletch
Copy link
Contributor

I think the problem is to do with using nodenv. We have seen a problem where if you are using nvm which does the same thing as nodenv, then if you haven't set the default version then the extension can't find npm so it is probably something similar

@InSuperposition
Copy link

The global (default) version had been set. I opened a terminal then ran code and it installed properly. Previously, when the installation was failing, I was trying to open VSCode using macOS's GUI.

@cazfletch
Copy link
Contributor

does this mean the problem is fixed?

@InSuperposition
Copy link

Yes. Thanks for your help, its much appreciated. It may be helpful for other users of nodenv and nvm to have documentation explaining the steps to take.

@Andresmb12
Copy link

How did you set the default version?

@the-inevitable
Copy link

the-inevitable commented Jan 10, 2020

does this mean the problem is fixed?

Hi @cazfletch

I think I have similar issue.

I'm on Ubuntu 18.04

I have VS Code:
1.41.1
26076a4de974ead31f97692a0d32f90d735645c0
x64

with IBM Blockchain Platform 1.0.17 extension

Node and NPM installed using NVM.

I've set the default node to to 10.12.0 using nvm alias default 10.12.0 so that when I open VS Code, invoke a terminal session within it and enter node -v and npm -v I get v10.12.0 and 6.4.1 accordingly.

I've also tried with different Node and NPM versions starting from v8 to the latest version, it didn't work and the error remains the same.

But the extension still can't get activated with error:

`[1/10/2020 3:12:35 PM] [INFO] Starting IBM Blockchain Platform Extension
[1/10/2020 3:12:36 PM] [INFO] Attempting to require dependency: grpc
[1/10/2020 3:12:36 PM] [INFO] Error requiring dependency: Failed to load gRPC binary module because it was not installed for the current system
Expected directory: electron-v6.1-linux-x64-glibc
Found: [node-v64-linux-x64-glibc]
This problem can often be fixed by running "npm rebuild" on the current system
Original error: Cannot find module '/home/vlad/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.17/node_modules/grpc/src/node/extension_binary/electron-v6.1-linux-x64-glibc/grpc_node.node'
Require stack:

  • /home/vlad/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.17/node_modules/grpc/src/grpc_extension.js
  • /home/vlad/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.17/node_modules/grpc/src/client_interceptors.js
  • /home/vlad/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.17/node_modules/grpc/src/client.js
  • /home/vlad/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.17/node_modules/grpc/index.js
  • /home/vlad/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.17/build/extension/dependencies/DependencyManager.js
  • /home/vlad/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.17/build/extension/webview/PreReqView.js
  • /home/vlad/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.17/build/extension/util/ExtensionUtil.js
  • /home/vlad/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.17/build/extension/util/Reporter.js
  • /home/vlad/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.17/build/extension/extension.js
  • /usr/share/code/resources/app/out/vs/loader.js
  • /usr/share/code/resources/app/out/bootstrap-amd.js
  • /usr/share/code/resources/app/out/bootstrap-fork.js
    [1/10/2020 3:12:36 PM] [INFO] Updating native node modules
    [1/10/2020 3:12:36 PM] [INFO] Rebuilding native node modules
    [1/10/2020 3:12:36 PM] [ERROR] Could not rebuild native dependencies spawn npm ENOENT. Please ensure that you have node and npm installed
    [1/10/2020 3:12:36 PM] [ERROR] Failed to activate extension: Error: spawn npm ENOENT
    [1/10/2020 3:12:36 PM] [ERROR] Error: spawn npm ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:264:19)
    at onErrorNT (internal/child_process.js:456:16)
    at processTicksAndRejections (internal/process/task_queues.js:84:9)`

What should I do to get the extension activated?

@cazfletch
Copy link
Contributor

What is your path variable set to?

@the-inevitable
Copy link

What is your path variable set to?

@cazfletch thankis for quick reply!

which node gives me /home/{USERNAME}/.nvm/versions/node/v10.12.0/bin/node
which npm gives me /home/{USERNAME}/.nvm/versions/node/v10.12.0/bin/npm

@cazfletch
Copy link
Contributor

We have seen this problem before where the path all looks ok but to do npm rebuild which is what is failing we do a childProcess.exec and that doesn't find it. We have an open issue to move to running commands on the terminal instead which would solve the issue

@the-inevitable
Copy link

We have seen this problem before where the path all looks ok but to do npm rebuild which is what is failing we do a childProcess.exec and that doesn't find it. We have an open issue to move to running commands on the terminal instead which would solve the issue

@cazfletch Great to hear that!

So what is it you suggest I should do to get the extension activated? Or is there no way to do so at the moment?

@cazfletch
Copy link
Contributor

I tihnk others that have seen the issue, get it working with a combination of closing and reopening vscode and restarting their machine

@the-inevitable
Copy link

I tihnk others that have seen the issue, get it working with a combination of closing and reopening vscode and restarting their machine

@cazfletch Okay, I hope the combination will work eventually, thank you

@sjais789
Copy link

The issue is there is no prebuild version of grpc module for node sdk.And the latest grpc module is unable to compile.
I downgraded the VS code to 1.38 and it worked.
Or you can go for installing the gcc version and make it compatible according to your setup.

@TheDhejavu
Copy link

TheDhejavu commented Mar 26, 2020

I'm getting thesame error

Failed to activate extension: Failed to execute command "npm" with arguments "rebuild, grpc, --target=7.1.11, --runtime=electron, --update-binary, --fallback-to-build, --target_arch=x64, --dist-url=https://atom.io/download/electron" return code 1

node -v
v12.16.1
npm -v
6.12.1

@the-inevitable
Copy link

hei @TheDhejavu, I got it working by downgrading vs-code to 1.41.
I haven't updated it since, so I'm not sure if it works on later versions.

@TheDhejavu
Copy link

I did that but still got the same error.

I will try version 1.41.

Thanks

@cazfletch
Copy link
Contributor

If you update to the latest version of the extension and the latest version of vscode it should fix the problem that @TheDhejavu is seeing with rebuilding not working

@TheDhejavu
Copy link

Installing the extension means installing the latest version right because I just did that like 4 times. I was using the latest version and just reinstalled the extension when I got this error.

I will try everything over again.

@cazfletch
Copy link
Contributor

yes version 1.0.24 of the extension and version 1.43 of vscode

@cazfletch
Copy link
Contributor

if that doesn't work can you send the output log rather than just the error please

@TheDhejavu
Copy link

@cazfletch

[3/26/2020 8:16:17 PM] [IMPORTANT] Log files can be found by running the Developer: Open Logs Folder command from the palette

[3/26/2020 8:16:17 PM] [INFO] Starting IBM Blockchain Platform Extension
[3/26/2020 8:16:17 PM] [INFO] openReleaseNotes
[3/26/2020 8:16:17 PM] [INFO] Attempting to require dependency: grpc
[3/26/2020 8:16:18 PM] [INFO] Error requiring dependency: Failed to load gRPC binary module because it was not installed for the current system
Expected directory: electron-v7.1-win32-x64-unknown
Found: [node-v64-linux-x64-glibc]
This problem can often be fixed by running "npm rebuild" on the current system
Original error: Cannot find module 'c:\Users\Administrator.vscode\extensions\ibmblockchain.ibm-blockchain-platform-1.0.24\node_modules\grpc\src\node\extension_binary\electron-v7.1-win32-x64-unknown\grpc_node.node'
Require stack:

  • c:\Users\Administrator.vscode\extensions\ibmblockchain.ibm-blockchain-platform-1.0.24\node_modules\grpc\src\grpc_extension.js
  • c:\Users\Administrator.vscode\extensions\ibmblockchain.ibm-blockchain-platform-1.0.24\node_modules\grpc\src\client_interceptors.js
  • c:\Users\Administrator.vscode\extensions\ibmblockchain.ibm-blockchain-platform-1.0.24\node_modules\grpc\src\client.js
  • c:\Users\Administrator.vscode\extensions\ibmblockchain.ibm-blockchain-platform-1.0.24\node_modules\grpc\index.js
  • c:\Users\Administrator.vscode\extensions\ibmblockchain.ibm-blockchain-platform-1.0.24\build\extension\dependencies\DependencyManager.js
  • c:\Users\Administrator.vscode\extensions\ibmblockchain.ibm-blockchain-platform-1.0.24\build\extension\webview\PreReqView.js
  • c:\Users\Administrator.vscode\extensions\ibmblockchain.ibm-blockchain-platform-1.0.24\build\extension\util\ExtensionUtil.js
  • c:\Users\Administrator.vscode\extensions\ibmblockchain.ibm-blockchain-platform-1.0.24\build\extension\util\Reporter.js
  • c:\Users\Administrator.vscode\extensions\ibmblockchain.ibm-blockchain-platform-1.0.24\build\extension\extension.js
  • c:\Users\Administrator\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\loader.js
  • c:\Users\Administrator\AppData\Local\Programs\Microsoft VS Code\resources\app\out\bootstrap-amd.js
  • c:\Users\Administrator\AppData\Local\Programs\Microsoft VS Code\resources\app\out\bootstrap-fork.js
    [3/26/2020 8:16:18 PM] [INFO] Updating native node modules
    [3/26/2020 8:16:18 PM] [INFO] Rebuilding native node modules
    [3/26/2020 8:16:25 PM] [INFO] > grpc@1.24.2 install C:\Users\Administrator.vscode\extensions\ibmblockchain.ibm-blockchain-platform-1.0.24\node_modules\grpc
    [3/26/2020 8:16:25 PM] [INFO] > node-pre-gyp install --fallback-to-build --library=static_library
    [3/26/2020 8:16:25 PM] [INFO] node-pre-gyp
    [3/26/2020 8:16:25 PM] [INFO] WARN Using request for node-pre-gyp https download
    [3/26/2020 8:16:26 PM] [INFO] node-pre-gyp
    [3/26/2020 8:16:26 PM] [INFO] WARN Tried to download(404): https://node-precompiled-binaries.grpc.io/grpc/v1.24.2/electron-v7.1-win32-x64-unknown.tar.gz
    [3/26/2020 8:16:26 PM] [INFO] node-pre-gyp WARN Pre-built binaries not found for grpc@1.24.2 and electron@7.1.11 (electron-v7.1 ABI, unknown) (falling back to source compile with node-gyp)
    [3/26/2020 8:16:28 PM] [INFO] gyp
    [3/26/2020 8:16:28 PM] [INFO] ERR! find VS
    [3/26/2020 8:16:28 PM] [INFO] gyp ERR! find VS msvs_version was set from command line or npm config
    [3/26/2020 8:16:28 PM] [INFO] gyp ERR! find VS - looking for Visual Studio version 2017
    [3/26/2020 8:16:28 PM] [INFO] gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
    [3/26/2020 8:16:28 PM] [INFO] gyp ERR! find VS checking VS2017 (15.9.28307.812) found at:
    [3/26/2020 8:16:28 PM] [INFO] gyp ERR! find VS "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools"
    [3/26/2020 8:16:28 PM] [INFO] gyp ERR! find VS - found "Visual Studio C++ core features"
    [3/26/2020 8:16:28 PM] [INFO] gyp ERR! find VS - missing any VC++ toolset
    [3/26/2020 8:16:28 PM] [INFO] gyp ERR! find VS could not find a version of Visual Studio 2017 or newer to use
    [3/26/2020 8:16:28 PM] [INFO] gyp ERR! find VS looking for Visual Studio 2015
    [3/26/2020 8:16:28 PM] [INFO] gyp ERR! find VS - found in "C:\Program Files (x86)\Microsoft Visual Studio 14.0"
    [3/26/2020 8:16:28 PM] [INFO] gyp ERR! find VS - MSBuild in "C:\Program Files (x86)\MSBuild\14.0\bin\MSBuild.exe"
    [3/26/2020 8:16:28 PM] [INFO] gyp ERR! find VS - msvs_version does not match this version
    [3/26/2020 8:16:28 PM] [INFO] gyp ERR! find VS looking for Visual Studio 2013
    [3/26/2020 8:16:28 PM] [INFO] gyp ERR! find VS - not found
    [3/26/2020 8:16:28 PM] [INFO] gyp ERR! find VS
    [3/26/2020 8:16:28 PM] [INFO] gyp ERR! find VS valid versions for msvs_version:
    [3/26/2020 8:16:28 PM] [INFO] gyp ERR! find VS - "2015"
    [3/26/2020 8:16:28 PM] [INFO] gyp ERR!
    [3/26/2020 8:16:28 PM] [INFO] find VS - "C:\Program Files (x86)\Microsoft Visual Studio 14.0"
    [3/26/2020 8:16:28 PM] [INFO] gyp ERR! find VS
    [3/26/2020 8:16:28 PM] [INFO] gyp ERR! find VS **************************************************************
    [3/26/2020 8:16:28 PM] [INFO] gyp ERR! find VS You need to install the latest version of Visual Studio
    [3/26/2020 8:16:28 PM] [INFO] gyp ERR! find VS including the "Desktop development with C++" workload.
    [3/26/2020 8:16:28 PM] [INFO] gyp ERR! find VS For more information consult the documentation at:
    [3/26/2020 8:16:28 PM] [INFO] gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
    [3/26/2020 8:16:28 PM] [INFO] gyp ERR! find VS **************************************************************
    [3/26/2020 8:16:28 PM] [INFO] gyp ERR! find VS
    [3/26/2020 8:16:28 PM] [INFO] gyp ERR! configure error
    [3/26/2020 8:16:28 PM] [INFO] gyp ERR! stack Error: Could not find any Visual Studio installation to use
    [3/26/2020 8:16:28 PM] [INFO] gyp ERR!
    [3/26/2020 8:16:28 PM] [INFO] stack at VisualStudioFinder.fail (C:\Users\Administrator\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:121:47)
    [3/26/2020 8:16:28 PM] [INFO] gyp ERR! stack at C:\Users\Administrator\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:74:16
    [3/26/2020 8:16:28 PM] [INFO] gyp ERR! stack at C:\Users\Administrator\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:372:16
    [3/26/2020 8:16:28 PM] [INFO] gyp ERR! stack at C:\Users\Administrator\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\util.js:54:7
    [3/26/2020 8:16:28 PM] [INFO] gyp ERR! stack at C:\Users\Administrator\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\util.js:33:16
    [3/26/2020 8:16:28 PM] [INFO] gyp ERR! stack at ChildProcess.exithandler (child_process.js:310:5)
    [3/26/2020 8:16:28 PM] [INFO] gyp ERR! stack at ChildProcess.emit (events.js:311:20)
    [3/26/2020 8:16:28 PM] [INFO] gyp ERR! stack at maybeClose (internal/child_process.js:1021:16)
    [3/26/2020 8:16:28 PM] [INFO] gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
    [3/26/2020 8:16:28 PM] [INFO] gyp ERR! System Windows_NT 10.0.17134
    [3/26/2020 8:16:28 PM] [INFO] gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\Administrator\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "configure" "--fallback-to-build" "--library=static_library" "--module=C:\Users\Administrator\.vscode\extensions\ibmblockchain.ibm-blockchain-platform-1.0.24\node_modules\grpc\src\node\extension_binary\electron-v7.1-win32-x64-unknown\grpc_node.node" "--module_name=grpc_node" "--module_path=C:\Users\Administrator\.vscode\extensions\ibmblockchain.ibm-blockchain-platform-1.0.24\node_modules\grpc\src\node\extension_binary\electron-v7.1-win32-x64-unknown" "--napi_version=5" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=electron-v7.1" "--dist-url=https://atom.io/download/electron" "--python=C:\Users\Administrator\.windows-build-tools\python27\python.exe" "--msvs_version=2017"
    [3/26/2020 8:16:28 PM] [INFO] gyp ERR! cwd C:\Users\Administrator.vscode\extensions\ibmblockchain.ibm-blockchain-platform-1.0.24\node_modules\grpc
    [3/26/2020 8:16:28 PM] [INFO] gyp ERR! node -v v12.16.1
    [3/26/2020 8:16:28 PM] [INFO] gyp ERR! node-gyp -v v5.0.5
    [3/26/2020 8:16:28 PM] [INFO] gyp ERR! not ok
    [3/26/2020 8:16:28 PM] [INFO] node-pre-gyp
    [3/26/2020 8:16:28 PM] [INFO] ERR! build error
    [3/26/2020 8:16:28 PM] [INFO] node-pre-gyp
    [3/26/2020 8:16:28 PM] [INFO]
    [3/26/2020 8:16:28 PM] [INFO] ERR!
    [3/26/2020 8:16:28 PM] [INFO] stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\Administrator\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --library=static_library --module=C:\Users\Administrator.vscode\extensions\ibmblockchain.ibm-blockchain-platform-1.0.24\node_modules\grpc\src\node\extension_binary\electron-v7.1-win32-x64-unknown\grpc_node.node --module_name=grpc_node --module_path=C:\Users\Administrator.vscode\extensions\ibmblockchain.ibm-blockchain-platform-1.0.24\node_modules\grpc\src\node\extension_binary\electron-v7.1-win32-x64-unknown --napi_version=5 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=electron-v7.1 --dist-url=https://atom.io/download/electron --python=C:\Users\Administrator.windows-build-tools\python27\python.exe --msvs_version=2017' (1)
    [3/26/2020 8:16:28 PM] [INFO] node-pre-gyp ERR!
    [3/26/2020 8:16:28 PM] [INFO] stack at ChildProcess. (C:\Users\Administrator.vscode\extensions\ibmblockchain.ibm-blockchain-platform-1.0.24\node_modules\grpc\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
    [3/26/2020 8:16:28 PM] [INFO] node-pre-gyp ERR!
    [3/26/2020 8:16:28 PM] [INFO] stack at ChildProcess.emit (events.js:311:20)
    [3/26/2020 8:16:28 PM] [INFO] node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1021:16)
    [3/26/2020 8:16:28 PM] [INFO] node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
    [3/26/2020 8:16:28 PM] [INFO] node-pre-gyp ERR! System Windows_NT 10.0.17134
    [3/26/2020 8:16:28 PM] [INFO] node-pre-gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\Administrator\.vscode\extensions\ibmblockchain.ibm-blockchain-platform-1.0.24\node_modules\grpc\node_modules\node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-build" "--library=static_library"
    [3/26/2020 8:16:28 PM] [INFO] node-pre-gyp ERR! cwd C:\Users\Administrator.vscode\extensions\ibmblockchain.ibm-blockchain-platform-1.0.24\node_modules\grpc
    [3/26/2020 8:16:28 PM] [INFO] node-pre-gyp ERR! node -v v12.16.1
    [3/26/2020 8:16:28 PM] [INFO] node-pre-gyp
    [3/26/2020 8:16:28 PM] [INFO] ERR! node-pre-gyp -v v0.14.0
    [3/26/2020 8:16:28 PM] [INFO] node-pre-gyp ERR! not ok
    [3/26/2020 8:16:28 PM] [INFO] Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\Administrator\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --library=static_library --module=C:\Users\Administrator.vscode\extensions\ibmblockchain.ibm-blockchain-platform-1.0.24\node_modules\grpc\src\node\extension_binary\electron-v7.1-win32-x64-unknown\grpc_node.node --module_name=grpc_node --module_path=C:\Users\Administrator.vscode\extensions\ibmblockchain.ibm-blockchain-platform-1.0.24\node_modules\grpc\src\node\extension_binary\electron-v7.1-win32-x64-unknown --napi_version=5 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=electron-v7.1 --dist-url=https://atom.io/download/electron --python=C:\Users\Administrator.windows-build-tools\python27\python.exe --msvs_version=2017' (1)
    [3/26/2020 8:16:28 PM] [INFO] npm
    [3/26/2020 8:16:28 PM] [INFO] ERR! code ELIFECYCLE
    [3/26/2020 8:16:28 PM] [INFO] npm ERR! errno 1
    [3/26/2020 8:16:28 PM] [INFO] npm ERR!
    [3/26/2020 8:16:28 PM] [INFO] grpc@1.24.2 install: node-pre-gyp install --fallback-to-build --library=static_library
    [3/26/2020 8:16:28 PM] [INFO] npm ERR! Exit status 1
    [3/26/2020 8:16:28 PM] [INFO] npm ERR!
    [3/26/2020 8:16:28 PM] [INFO] npm ERR! Failed at the grpc@1.24.2 install script.
    [3/26/2020 8:16:28 PM] [INFO] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
    [3/26/2020 8:16:28 PM] [INFO] npm ERR! A complete log of this run can be found in:
    [3/26/2020 8:16:28 PM] [INFO] npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache_logs\2020-03-26T19_16_28_818Z-debug.log
    [3/26/2020 8:16:28 PM] [ERROR] Could not rebuild native dependencies Failed to execute command "npm" with arguments "rebuild, grpc, --target=7.1.11, --runtime=electron, --update-binary, --fallback-to-build, --target_arch=x64, --dist-url=https://atom.io/download/electron" return code 1. Please ensure that you have node and npm installed
    [3/26/2020 8:16:28 PM] [ERROR] Failed to activate extension: Error: Failed to execute command "npm" with arguments "rebuild, grpc, --target=7.1.11, --runtime=electron, --update-binary, --fallback-to-build, --target_arch=x64, --dist-url=https://atom.io/download/electron" return code 1
    [3/26/2020 8:16:28 PM] [ERROR] Error: Failed to execute command "npm" with arguments "rebuild, grpc, --target=7.1.11, --runtime=electron, --update-binary, --fallback-to-build, --target_arch=x64, --dist-url=https://atom.io/download/electron" return code 1
    at ChildProcess. (c:\Users\Administrator.vscode\extensions\ibmblockchain.ibm-blockchain-platform-1.0.24\build\extension\util\CommandUtil.js:76:39)
    at ChildProcess.emit (events.js:203:13)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)

@TheDhejavu
Copy link

@cazfletch
This seems to be the main problem

[3/26/2020 8:50:35 PM] [INFO] Attempting to require dependency: grpc
[3/26/2020 8:50:35 PM] [INFO] Error requiring dependency: Failed to load gRPC binary module because it was not installed for the current system
Expected directory: electron-v7.1-win32-x64-unknown
Found: [node-v64-linux-x64-glibc]
This problem can often be fixed by running "npm rebuild" on the current system
Original error: Cannot find module 'c:\Users\Administrator.vscode\extensions\ibmblockchain.ibm-blockchain-platform-1.0.24\node_modules\grpc\src\node\extension_binary\electron-v7.1-win32-x64-unknown\grpc_node.node'

@cazfletch
Copy link
Contributor

The problem is

[3/26/2020 8:16:28 PM] [INFO] ERR! find VS
[3/26/2020 8:16:28 PM] [INFO] gyp ERR! find VS msvs_version was set from command line or npm config
[3/26/2020 8:16:28 PM] [INFO] gyp ERR! find VS - looking for Visual Studio version 2017
[3/26/2020 8:16:28 PM] [INFO] gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
[3/26/2020 8:16:28 PM] [INFO] gyp ERR! find VS checking VS2017 (15.9.28307.812) found at:
[3/26/2020 8:16:28 PM] [INFO] gyp ERR! find VS "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools"
[3/26/2020 8:16:28 PM] [INFO] gyp ERR! find VS - found "Visual Studio C++ core features"
[3/26/2020 8:16:28 PM] [INFO] gyp ERR! find VS - missing any VC++ toolset
[3/26/2020 8:16:28 PM] [INFO] gyp ERR! find VS could not find a version of Visual Studio 2017 or newer to use
[3/26/2020 8:16:28 PM] [INFO] gyp ERR! find VS looking for Visual Studio 2015
[3/26/2020 8:16:28 PM] [INFO] gyp ERR! find VS - found in "C:\Program Files (x86)\Microsoft Visual Studio 14.0"
[3/26/2020 8:16:28 PM] [INFO] gyp ERR! find VS - MSBuild in "C:\Program Files (x86)\MSBuild\14.0\bin\MSBuild.exe"
[3/26/2020 8:16:28 PM] [INFO] gyp ERR! find VS - msvs_version does not match this version
[3/26/2020 8:16:28 PM] [INFO] gyp ERR! find VS looking for Visual Studio 2013
[3/26/2020 8:16:28 PM] [INFO] gyp ERR! find VS - not found
[3/26/2020 8:16:28 PM] [INFO] gyp ERR! find VS
[3/26/2020 8:16:28 PM] [INFO] gyp ERR! find VS valid versions for msvs_version:
[3/26/2020 8:16:28 PM] [INFO] gyp ERR! find VS - "2015"
[3/26/2020 8:16:28 PM] [INFO] gyp ERR!
[3/26/2020 8:16:28 PM] [INFO] find VS - "C:\Program Files (x86)\Microsoft Visual Studio 14.0"
[3/26/2020 8:16:28 PM] [INFO] gyp ERR! find VS
[3/26/2020 8:16:28 PM] [INFO] gyp ERR! find VS

@TheDhejavu
Copy link

@cazfletch , oh, how do i fix that

@cazfletch
Copy link
Contributor

looks like you need to install visual studio

@TheDhejavu
Copy link

I actually have a vsocde installed on my system

@TheDhejavu
Copy link

hi @cazfletch downgrading my Vscode to version 3.9 fix the problem which in turn caused another major issue for other dependencies like Azure on my vscode 😕

@cazfletch
Copy link
Contributor

If you uninstall the other extensions and reinstall them it should install versions of them compatible with vscode 1.39

@TheDhejavu
Copy link

Thanks @cazfletch

@VikasCanand
Copy link

The issue is there is no prebuild version of grpc module for node sdk.And the latest grpc module is unable to compile.
I downgraded the VS code to 1.38 and it worked.
Or you can go for installing the gcc version and make it compatible according to your setup.

How did you downgrade VSCode version?

@Jakeeyturner
Copy link
Contributor

The issue is there is no prebuild version of grpc module for node sdk.And the latest grpc module is unable to compile.
I downgraded the VS code to 1.38 and it worked.
Or you can go for installing the gcc version and make it compatible according to your setup.

How did you downgrade VSCode version?

https://code.visualstudio.com/updates/v1_39

You can install other versions by selecting the date & click the download link.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests